Update app.py
Browse files
app.py
CHANGED
@@ -47,18 +47,18 @@ def get_voices():
|
|
47 |
iface = gr.Interface(
|
48 |
fn=convert_tts,
|
49 |
inputs=[
|
50 |
-
gr.
|
51 |
-
gr.
|
52 |
-
gr.
|
53 |
-
gr.
|
54 |
-
gr.
|
55 |
-
gr.
|
56 |
],
|
57 |
outputs=[
|
58 |
-
gr.
|
59 |
-
gr.
|
60 |
],
|
61 |
-
title="Text-to-Speech Conversion"
|
62 |
# Remove or comment out concurrency parameters not supported in Gradio 4.36.0
|
63 |
)
|
64 |
|
|
|
47 |
iface = gr.Interface(
|
48 |
fn=convert_tts,
|
49 |
inputs=[
|
50 |
+
gr.Dropdown(choices=get_models(), label="Model"),
|
51 |
+
gr.Textbox(label="Text", placeholder="Enter text here"),
|
52 |
+
gr.Dropdown(choices=get_voices(), label="Voice"),
|
53 |
+
gr.Slider(minimum=0, maximum=1, step=0.01, label="Slang Rate"),
|
54 |
+
gr.Checkbox(label="Use Uploaded Voice"),
|
55 |
+
gr.File(label="Voice File")
|
56 |
],
|
57 |
outputs=[
|
58 |
+
gr.JSON(label="Info"),
|
59 |
+
gr.Textbox(label="Audio URI")
|
60 |
],
|
61 |
+
title="Text-to-Speech Conversion"
|
62 |
# Remove or comment out concurrency parameters not supported in Gradio 4.36.0
|
63 |
)
|
64 |
|