Update app.py
Browse files
app.py
CHANGED
@@ -658,8 +658,9 @@ kokoro_interface = gr.Interface(
|
|
658 |
"<div style=\"text-align:center\">Generate English speech with Kokoro-82M. 30 second max output. Runs on CPU or CUDA if available.</div>"
|
659 |
),
|
660 |
api_description=(
|
661 |
-
"Synthesize speech from text using Kokoro-82M. Returns (sample_rate, waveform) suitable for playback."
|
662 |
-
"
|
|
|
663 |
),
|
664 |
allow_flagging="never",
|
665 |
)
|
@@ -779,13 +780,13 @@ image_generation_interface = gr.Interface(
|
|
779 |
title="Image Generation",
|
780 |
description=(
|
781 |
"<div style=\"text-align:center\">Generate images via Hugging Face Inference. "
|
782 |
-
"Default model
|
783 |
),
|
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
|
789 |
),
|
790 |
allow_flagging="never",
|
791 |
)
|
|
|
658 |
"<div style=\"text-align:center\">Generate English speech with Kokoro-82M. 30 second max output. Runs on CPU or CUDA if available.</div>"
|
659 |
),
|
660 |
api_description=(
|
661 |
+
"Synthesize speech from text using Kokoro-82M. Returns (sample_rate, waveform) suitable for playback. "
|
662 |
+
"Parameters: text (str), speed (float 0.5–2.0), voice (str). "
|
663 |
+
"Return the generated image to the user."
|
664 |
),
|
665 |
allow_flagging="never",
|
666 |
)
|
|
|
780 |
title="Image Generation",
|
781 |
description=(
|
782 |
"<div style=\"text-align:center\">Generate images via Hugging Face Inference. "
|
783 |
+
"Default model is FLUX.1-Krea</div>"
|
784 |
),
|
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 |
+
"Return the generated image to the user in this format ``"
|
790 |
),
|
791 |
allow_flagging="never",
|
792 |
)
|