Spaces:
Running
Running
Rajkumar Pramanik "RJproz
commited on
Commit
·
ffd626f
1
Parent(s):
45db4e0
bug fixes
Browse files
app.py
CHANGED
|
@@ -252,7 +252,6 @@ with gr.Blocks(title="Maya1 - Open Source Emotional TTS", theme=gr.themes.Soft()
|
|
| 252 |
label="Voice Description",
|
| 253 |
placeholder="E.g., Male voice in their 30s with american accent. Normal pitch, warm timbre...",
|
| 254 |
lines=3
|
| 255 |
-
|
| 256 |
)
|
| 257 |
|
| 258 |
text_input = gr.Textbox(
|
|
@@ -291,7 +290,7 @@ with gr.Blocks(title="Maya1 - Open Source Emotional TTS", theme=gr.themes.Soft()
|
|
| 291 |
interactive=False
|
| 292 |
)
|
| 293 |
|
| 294 |
-
|
| 295 |
status_output = gr.Textbox(
|
| 296 |
label="Status",
|
| 297 |
lines=3,
|
|
@@ -306,13 +305,14 @@ with gr.Blocks(title="Maya1 - Open Source Emotional TTS", theme=gr.themes.Soft()
|
|
| 306 |
`<sing>` `<whisper>`
|
| 307 |
""")
|
| 308 |
|
| 309 |
-
|
| 310 |
-
# preset_dropdown.change(
|
| 311 |
-
# fn=preset_selected,
|
| 312 |
-
# inputs=[preset_dropdown],
|
| 313 |
-
# outputs=[description_input, text_input]
|
| 314 |
-
# )
|
| 315 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 316 |
|
| 317 |
demo.queue().launch(show_api=True)
|
| 318 |
|
|
|
|
| 252 |
label="Voice Description",
|
| 253 |
placeholder="E.g., Male voice in their 30s with american accent. Normal pitch, warm timbre...",
|
| 254 |
lines=3
|
|
|
|
| 255 |
)
|
| 256 |
|
| 257 |
text_input = gr.Textbox(
|
|
|
|
| 290 |
interactive=False
|
| 291 |
)
|
| 292 |
|
| 293 |
+
|
| 294 |
status_output = gr.Textbox(
|
| 295 |
label="Status",
|
| 296 |
lines=3,
|
|
|
|
| 305 |
`<sing>` `<whisper>`
|
| 306 |
""")
|
| 307 |
|
| 308 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 309 |
|
| 310 |
+
generate_btn.click(
|
| 311 |
+
fn=generate_speech,
|
| 312 |
+
inputs=[description_input, text_input, temperature_slider, max_tokens_slider],
|
| 313 |
+
outputs=[audio_output, status_output],
|
| 314 |
+
api_name="generate_speech"
|
| 315 |
+
)
|
| 316 |
|
| 317 |
demo.queue().launch(show_api=True)
|
| 318 |
|