amirgame197 commited on
Commit
0bad579
·
verified ·
1 Parent(s): 3b61a4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -65,10 +65,8 @@ def synthesize_speech(text):
65
 
66
  # Using Gradio Blocks
67
  with gr.Blocks(theme=gr.themes.Base()) as blocks:
68
- gr.Markdown("# Persian Text to Speech Synthesizer")
69
- gr.Markdown("Enter text to synthesize it into speech using Piper+Hazm")
70
- input_text = gr.Textbox(label="ورود متن")
71
- output_audio = gr.Audio(label="Synthesized Speech", type="numpy")
72
  output_text = gr.Textbox(label="Output Text", visible=False) # This is the new text output component
73
  submit_button = gr.Button("Synthesize")
74
 
 
65
 
66
  # Using Gradio Blocks
67
  with gr.Blocks(theme=gr.themes.Base()) as blocks:
68
+ input_text = gr.Textbox(label="Input")
69
+ output_audio = gr.Audio(label="Output", type="filepath")
 
 
70
  output_text = gr.Textbox(label="Output Text", visible=False) # This is the new text output component
71
  submit_button = gr.Button("Synthesize")
72