Nick088 commited on
Commit
03a56f9
1 Parent(s): c9297fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -18,10 +18,10 @@ async def text_to_speech_edge(text, language_code):
18
  await communicate.save(tmp_path)
19
  return f"Speech synthesis completed for: {text}", tmp_path
20
 
21
- input_text = gr.inputs.Textbox(lines=5, label="Input Text")
22
- output_text = gr.outputs.Textbox(label="Output Text")
23
- output_audio = gr.outputs.Audio(type="filepath", label="Exported Audio")
24
- language = gr.inputs.Dropdown(choices=list(language_dict.keys()), label="Language")
25
 
26
  interface = gr.Interface(
27
  fn=text_to_speech_edge,
 
18
  await communicate.save(tmp_path)
19
  return f"Speech synthesis completed for: {text}", tmp_path
20
 
21
+ input_text = gr.Textbox(lines=5, label="Input Text")
22
+ output_text = gr.Textbox(label="Output Text")
23
+ output_audio = gr.Audio(type="filepath", label="Exported Audio")
24
+ language = gr.Dropdown(choices=list(language_dict.keys()), label="Language")
25
 
26
  interface = gr.Interface(
27
  fn=text_to_speech_edge,