Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -79,8 +79,8 @@ def text_to_audio_b64(text, speed=1.0):
|
|
79 |
return wav_b64
|
80 |
|
81 |
# Create Gradio interface
|
82 |
-
with gr.Blocks(title="Kokoro Text-to-Audio") as app:
|
83 |
-
gr.Markdown("# 🎵 Kokoro Text-to-Audio
|
84 |
gr.Markdown("Convert text to speech using the Kokoro-82M model")
|
85 |
|
86 |
with gr.Row():
|
@@ -109,9 +109,7 @@ with gr.Blocks(title="Kokoro Text-to-Audio") as app:
|
|
109 |
)
|
110 |
|
111 |
gr.Markdown("### Usage Tips")
|
112 |
-
gr.Markdown("- For best results, keep your text reasonably short (up to ~500 characters)")
|
113 |
gr.Markdown("- Adjust the speed slider to modify the pace of speech")
|
114 |
-
gr.Markdown("- The model may take a moment to load on first use")
|
115 |
|
116 |
# Add section about MCP support
|
117 |
with gr.Accordion("MCP Support (for LLMs)", open=False):
|
@@ -126,7 +124,7 @@ with gr.Blocks(title="Kokoro Text-to-Audio") as app:
|
|
126 |
{
|
127 |
"mcpServers": {
|
128 |
"kokoroTTS": {
|
129 |
-
"url": "https://
|
130 |
}
|
131 |
}
|
132 |
}
|
|
|
79 |
return wav_b64
|
80 |
|
81 |
# Create Gradio interface
|
82 |
+
with gr.Blocks(title="Kokoro Text-to-Audio MCP") as app:
|
83 |
+
gr.Markdown("# 🎵 Kokoro Text-to-Audio MCP")
|
84 |
gr.Markdown("Convert text to speech using the Kokoro-82M model")
|
85 |
|
86 |
with gr.Row():
|
|
|
109 |
)
|
110 |
|
111 |
gr.Markdown("### Usage Tips")
|
|
|
112 |
gr.Markdown("- Adjust the speed slider to modify the pace of speech")
|
|
|
113 |
|
114 |
# Add section about MCP support
|
115 |
with gr.Accordion("MCP Support (for LLMs)", open=False):
|
|
|
124 |
{
|
125 |
"mcpServers": {
|
126 |
"kokoroTTS": {
|
127 |
+
"url": "https://fdaudens-kokoro-mcp.hf.space/gradio_api/mcp/sse"
|
128 |
}
|
129 |
}
|
130 |
}
|