Update app.py
Browse files
app.py
CHANGED
@@ -698,8 +698,7 @@ def Image_Generation( # <-- MCP tool #5 (Image Generation)
|
|
698 |
|
699 |
Args:
|
700 |
prompt (str): Text description of the image to generate.
|
701 |
-
model_id (str): The Hugging Face model id (creator/model-name). Defaults to
|
702 |
-
"black-forest-labs/FLUX.1-Krea-dev".
|
703 |
negative_prompt (str): What should NOT appear in the image.
|
704 |
steps (int): Number of denoising steps (1–100). Higher can improve quality.
|
705 |
cfg_scale (float): Guidance scale (1–20). Higher = follow the prompt more closely.
|
@@ -785,7 +784,8 @@ image_generation_interface = gr.Interface(
|
|
785 |
api_description=(
|
786 |
"Generate a single image from a text prompt using a Hugging Face model (serverless Inference). "
|
787 |
"Parameters: prompt (str), model_id (str, creator/model-name), negative_prompt (str), steps (int, 1–100), cfg_scale (float, 1–20), "
|
788 |
-
"sampler (str, label only), seed (int, -1=random), width/height (int, 64–1216). Returns a PIL.Image."
|
|
|
789 |
),
|
790 |
allow_flagging="never",
|
791 |
)
|
|
|
698 |
|
699 |
Args:
|
700 |
prompt (str): Text description of the image to generate.
|
701 |
+
model_id (str): The Hugging Face model id (creator/model-name). Defaults to "black-forest-labs/FLUX.1-Krea-dev".
|
|
|
702 |
negative_prompt (str): What should NOT appear in the image.
|
703 |
steps (int): Number of denoising steps (1–100). Higher can improve quality.
|
704 |
cfg_scale (float): Guidance scale (1–20). Higher = follow the prompt more closely.
|
|
|
784 |
api_description=(
|
785 |
"Generate a single image from a text prompt using a Hugging Face model (serverless Inference). "
|
786 |
"Parameters: prompt (str), model_id (str, creator/model-name), negative_prompt (str), steps (int, 1–100), cfg_scale (float, 1–20), "
|
787 |
+
"sampler (str, label only), seed (int, -1=random), width/height (int, 64–1216). Returns a PIL.Image. "
|
788 |
+
"Return the finished image to the user in this format ``"
|
789 |
),
|
790 |
allow_flagging="never",
|
791 |
)
|