Nymbo commited on
Commit
20e2687
·
verified ·
1 Parent(s): d265e96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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
- " Parameters: text (str), speed (float 0.5–2.0), voice (str)."
 
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: black-forest-labs/FLUX.1-Krea-dev. Set HF_READ_TOKEN as needed.</div>"
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 finished image to the user in this format `![Alt text](URL)`"
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 `![Alt text](URL)`"
790
  ),
791
  allow_flagging="never",
792
  )