Update app.py
Browse files
app.py
CHANGED
|
@@ -19,10 +19,10 @@ def kokoro_tts(text, speaker):
|
|
| 19 |
iface = gr.Interface(
|
| 20 |
fn=kokoro_tts,
|
| 21 |
inputs=[
|
| 22 |
-
gr.
|
| 23 |
-
gr.
|
| 24 |
],
|
| 25 |
-
outputs=gr.
|
| 26 |
title="Kokoro Text-to-Speech",
|
| 27 |
description="A Text-to-Speech app powered by Kokoro and Transformers.js with multiple speaker options"
|
| 28 |
)
|
|
|
|
| 19 |
iface = gr.Interface(
|
| 20 |
fn=kokoro_tts,
|
| 21 |
inputs=[
|
| 22 |
+
gr.Textbox(lines=2, placeholder="Enter text here..."),
|
| 23 |
+
gr.Dropdown(choices=list(SPEAKER_MODELS.keys()), label="Select Speaker")
|
| 24 |
],
|
| 25 |
+
outputs=gr.Audio(label="Generated Speech"),
|
| 26 |
title="Kokoro Text-to-Speech",
|
| 27 |
description="A Text-to-Speech app powered by Kokoro and Transformers.js with multiple speaker options"
|
| 28 |
)
|