Update app.py
Browse files
app.py
CHANGED
@@ -248,14 +248,20 @@ def tts_sync(text, language):
|
|
248 |
asyncio.set_event_loop(loop)
|
249 |
return loop.run_until_complete(tts(text, language))
|
250 |
|
251 |
-
with gr.Blocks() as demo:
|
252 |
-
gr.Markdown("##
|
253 |
with gr.Tabs():
|
254 |
with gr.Row():
|
255 |
with gr.Column():
|
256 |
-
text_input = gr.Textbox(
|
257 |
-
|
258 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
259 |
with gr.Row():
|
260 |
with gr.Column():
|
261 |
audio_output = gr.Audio(label="Output Audio")
|
|
|
248 |
asyncio.set_event_loop(loop)
|
249 |
return loop.run_until_complete(tts(text, language))
|
250 |
|
251 |
+
with gr.Blocks(theme="aliabid94/new-theme") as demo:
|
252 |
+
gr.Markdown("## Edge Text-to-Speech")
|
253 |
with gr.Tabs():
|
254 |
with gr.Row():
|
255 |
with gr.Column():
|
256 |
+
text_input = gr.Textbox(
|
257 |
+
label="Enter Text",
|
258 |
+
placeholder="Type something here...",
|
259 |
+
)
|
260 |
+
language_input = gr.Dropdown(
|
261 |
+
list(LANGUAGE_VOICES.keys()),
|
262 |
+
label="Select Language",
|
263 |
+
)
|
264 |
+
submit_button = gr.Button("Convert")
|
265 |
with gr.Row():
|
266 |
with gr.Column():
|
267 |
audio_output = gr.Audio(label="Output Audio")
|