Nymbo commited on
Commit
86c62a8
·
verified ·
1 Parent(s): 675e6f3

improving media generation docstrings

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 image to the user."
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 image to the user in this format `![Alt text](URL)`"
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). Returns a file path to an MP4 that MCP exposes as a file URL."
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 `![Alt text](URL)`"
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 `![Alt text](URL)`"
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 `![Alt text](URL)`"
986
  ),
987
  allow_flagging="never",
988
  )