Hev832 commited on
Commit
ce4aa8f
1 Parent(s): b35d893

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -5
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("## Multilingual Text-to-Speech with Edge TTS")
253
  with gr.Tabs():
254
  with gr.Row():
255
  with gr.Column():
256
- text_input = gr.Textbox(label="Enter Text", placeholder="Type something here...")
257
- language_input = gr.Dropdown(list(LANGUAGE_VOICES.keys()), label="Select Language")
258
- submit_button = gr.Button("Convert to Speech")
 
 
 
 
 
 
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")