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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -67,7 +67,7 @@ def synthesize_speech(text):
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
 
73
  submit_button.click(synthesize_speech, inputs=input_text, outputs=[output_audio, output_text])
 
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") # This is the new text output component
71
  submit_button = gr.Button("Synthesize")
72
 
73
  submit_button.click(synthesize_speech, inputs=input_text, outputs=[output_audio, output_text])