ModelsLab / Flux-Prompt-Enhance

huggingface.co
Total runs: 8
24-hour runs: 0
7-day runs: 2
30-day runs: 2
Model's Last Updated: January 17 2025
text-generation

Introduction of Flux-Prompt-Enhance

Model Details of Flux-Prompt-Enhance

from transformers import pipeline, AutoTokenizer, AutoModelForSeq2SeqLM

device = "cuda" if torch.cuda.is_available() else "cpu"

# Model checkpoint
model_checkpoint = "gokaygokay/Flux-Prompt-Enhance"

# Tokenizer
tokenizer = AutoTokenizer.from_pretrained(model_checkpoint)

# Model
model = AutoModelForSeq2SeqLM.from_pretrained(model_checkpoint)

enhancer = pipeline('text2text-generation',
                    model=model,
                    tokenizer=tokenizer,
                    repetition_penalty= 1.2,
                    device=device)

max_target_length = 256
prefix = "enhance prompt: "

short_prompt = "beautiful house with text 'hello'"
answer = enhancer(prefix + short_prompt, max_length=max_target_length)
final_answer = answer[0]['generated_text']
print(final_answer)

# a two-story house with white trim, large windows on the second floor,
# three chimneys on the roof, green trees and shrubs in front of the house,
# stone pathway leading to the front door, text on the house reads "hello" in all caps,
# blue sky above, shadows cast by the trees, sunlight creating contrast on the house's facade,
# some plants visible near the bottom right corner, overall warm and serene atmosphere. 

Runs of ModelsLab Flux-Prompt-Enhance on huggingface.co

8
Total runs
0
24-hour runs
0
3-day runs
2
7-day runs
2
30-day runs

More Information About Flux-Prompt-Enhance huggingface.co Model

More Flux-Prompt-Enhance license Visit here:

https://choosealicense.com/licenses/apache-2.0

Flux-Prompt-Enhance huggingface.co

Flux-Prompt-Enhance huggingface.co is an AI model on huggingface.co that provides Flux-Prompt-Enhance's model effect (), which can be used instantly with this ModelsLab Flux-Prompt-Enhance model. huggingface.co supports a free trial of the Flux-Prompt-Enhance model, and also provides paid use of the Flux-Prompt-Enhance. Support call Flux-Prompt-Enhance model through api, including Node.js, Python, http.

Flux-Prompt-Enhance huggingface.co Url

https://huggingface.co/ModelsLab/Flux-Prompt-Enhance

ModelsLab Flux-Prompt-Enhance online free

Flux-Prompt-Enhance huggingface.co is an online trial and call api platform, which integrates Flux-Prompt-Enhance's modeling effects, including api services, and provides a free online trial of Flux-Prompt-Enhance, you can try Flux-Prompt-Enhance online for free by clicking the link below.

ModelsLab Flux-Prompt-Enhance online free url in huggingface.co:

https://huggingface.co/ModelsLab/Flux-Prompt-Enhance

Flux-Prompt-Enhance install

Flux-Prompt-Enhance is an open source model from GitHub that offers a free installation service, and any user can find Flux-Prompt-Enhance on GitHub to install. At the same time, huggingface.co provides the effect of Flux-Prompt-Enhance install, users can directly use Flux-Prompt-Enhance installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Flux-Prompt-Enhance install url in huggingface.co:

https://huggingface.co/ModelsLab/Flux-Prompt-Enhance

Url of Flux-Prompt-Enhance

Flux-Prompt-Enhance huggingface.co Url

Provider of Flux-Prompt-Enhance huggingface.co

ModelsLab
ORGANIZATIONS

Other API from ModelsLab

huggingface.co

Total runs: 9.4K
Run Growth: 888
Growth Rate: 9.47%
Updated:October 07 2025
huggingface.co

Total runs: 20
Run Growth: 1
Growth Rate: 5.00%
Updated:January 17 2025
huggingface.co

Total runs: 6
Run Growth: 2
Growth Rate: 33.33%
Updated:May 10 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:November 27 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 13 2024
huggingface.co

Total runs: 0
Run Growth: -2
Growth Rate: 0.00%
Updated:May 25 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 11 2025