improving media generation docstrings
Browse files
app.py
CHANGED
|
@@ -679,7 +679,7 @@ kokoro_interface = gr.Interface(
|
|
| 679 |
api_description=(
|
| 680 |
"Synthesize speech from text using Kokoro-82M. Returns (sample_rate, waveform) suitable for playback. "
|
| 681 |
"Parameters: text (str), speed (float 0.5–2.0), voice (str). "
|
| 682 |
-
"Return the generated
|
| 683 |
),
|
| 684 |
allow_flagging="never",
|
| 685 |
)
|
|
@@ -805,7 +805,7 @@ image_generation_interface = gr.Interface(
|
|
| 805 |
"Generate a single image from a text prompt using a Hugging Face model (serverless Inference). "
|
| 806 |
"Parameters: prompt (str), model_id (str, creator/model-name), negative_prompt (str), steps (int, 1–100), cfg_scale (float, 1–20), "
|
| 807 |
"sampler (str, label only), seed (int, -1=random), width/height (int, 64–1216). Returns a PIL.Image. "
|
| 808 |
-
"Return the generated
|
| 809 |
),
|
| 810 |
allow_flagging="never",
|
| 811 |
)
|
|
@@ -982,7 +982,7 @@ video_generation_interface = gr.Interface(
|
|
| 982 |
api_description=(
|
| 983 |
"Generate a short video from a text prompt using a Hugging Face model (Serverless Inference). "
|
| 984 |
"Parameters: prompt (str), model_id (str), negative_prompt (str), steps (int), cfg_scale (float), seed (int), "
|
| 985 |
-
"width/height (int), fps (int), duration (float).
|
| 986 |
),
|
| 987 |
allow_flagging="never",
|
| 988 |
)
|
|
|
|
| 679 |
api_description=(
|
| 680 |
"Synthesize speech from text using Kokoro-82M. Returns (sample_rate, waveform) suitable for playback. "
|
| 681 |
"Parameters: text (str), speed (float 0.5–2.0), voice (str). "
|
| 682 |
+
"Return the generated media to the user in this format ``"
|
| 683 |
),
|
| 684 |
allow_flagging="never",
|
| 685 |
)
|
|
|
|
| 805 |
"Generate a single image from a text prompt using a Hugging Face model (serverless Inference). "
|
| 806 |
"Parameters: prompt (str), model_id (str, creator/model-name), negative_prompt (str), steps (int, 1–100), cfg_scale (float, 1–20), "
|
| 807 |
"sampler (str, label only), seed (int, -1=random), width/height (int, 64–1216). Returns a PIL.Image. "
|
| 808 |
+
"Return the generated media to the user in this format ``"
|
| 809 |
),
|
| 810 |
allow_flagging="never",
|
| 811 |
)
|
|
|
|
| 982 |
api_description=(
|
| 983 |
"Generate a short video from a text prompt using a Hugging Face model (Serverless Inference). "
|
| 984 |
"Parameters: prompt (str), model_id (str), negative_prompt (str), steps (int), cfg_scale (float), seed (int), "
|
| 985 |
+
"width/height (int), fps (int), duration (float). Return the generated media to the user in this format ``"
|
| 986 |
),
|
| 987 |
allow_flagging="never",
|
| 988 |
)
|