Spaces:
Running
Running
improving media generation docstrings
Browse files678 unmodified lines679680681682683684685119 unmodified lines805806807808809810811170 unmodified lines982983984985986987988678 unmodified linesapi_description=("Synthesize speech from text using Kokoro-82M. Returns (sample_rate, waveform) suitable for playback. ""Parameters: text (str), speed (float 0.5–2.0), voice (str). ""Return the generated image to the user."),allow_flagging="never",)119 unmodified lines"Generate a single image from a text prompt using a Hugging Face model (serverless Inference). ""Parameters: prompt (str), model_id (str, creator/model-name), negative_prompt (str), steps (int, 1–100), cfg_scale (float, 1–20), ""sampler (str, label only), seed (int, -1=random), width/height (int, 64–1216). Returns a PIL.Image. ""Return the generated image to the user in this format ``"),allow_flagging="never",)170 unmodified linesapi_description=("Generate a short video from a text prompt using a Hugging Face model (Serverless Inference). ""Parameters: prompt (str), model_id (str), negative_prompt (str), steps (int), cfg_scale (float), seed (int), ""width/height (int), fps (int), duration (float). Returns a file path to an MP4 that MCP exposes as a file URL."),allow_flagging="never",)678 unmodified lines679680681682683684685119 unmodified lines805806807808809810811170 unmodified lines982983984985986987988678 unmodified linesapi_description=("Synthesize speech from text using Kokoro-82M. Returns (sample_rate, waveform) suitable for playback. ""Parameters: text (str), speed (float 0.5–2.0), voice (str). ""Return the generated media to the user in this format ``"),allow_flagging="never",)119 unmodified lines"Generate a single image from a text prompt using a Hugging Face model (serverless Inference). ""Parameters: prompt (str), model_id (str, creator/model-name), negative_prompt (str), steps (int, 1–100), cfg_scale (float, 1–20), ""sampler (str, label only), seed (int, -1=random), width/height (int, 64–1216). Returns a PIL.Image. ""Return the generated media to the user in this format ``"),allow_flagging="never",)170 unmodified linesapi_description=("Generate a short video from a text prompt using a Hugging Face model (Serverless Inference). ""Parameters: prompt (str), model_id (str), negative_prompt (str), steps (int), cfg_scale (float), seed (int), ""width/height (int), fps (int), duration (float). Return the generated media to the user in this format ``"),allow_flagging="never",)
app.py+3-3