awacke1 commited on
Commit
821f65e
1 Parent(s): 8ed0be2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -121,7 +121,7 @@ with demo:
121
  saved = gr.Textbox()
122
  savedAll = gr.Textbox()
123
  TTSchoice = gr.inputs.Radio( label="Pick a TTS Model", choices=MODEL_NAMES, )
124
- audio_file_out = gr.outputs.Audio(label="Output")
125
 
126
  b1 = gr.Button("Recognize Speech")
127
  b2 = gr.Button("Classify Sentiment")
@@ -133,7 +133,7 @@ with demo:
133
  b2.click(text_to_sentiment, inputs=text, outputs=label)
134
  b3.click(upsert, inputs=text, outputs=saved)
135
  b4.click(selectall, inputs=text, outputs=savedAll)
136
- b5.click(tts, inputs={text,TTSchoice}, outputs=audio_file_out)
137
 
138
  demo.launch(share=True)
139
 
 
121
  saved = gr.Textbox()
122
  savedAll = gr.Textbox()
123
  TTSchoice = gr.inputs.Radio( label="Pick a TTS Model", choices=MODEL_NAMES, )
124
+ audio = gr.Audio(label="Output", interactive=False)
125
 
126
  b1 = gr.Button("Recognize Speech")
127
  b2 = gr.Button("Classify Sentiment")
 
133
  b2.click(text_to_sentiment, inputs=text, outputs=label)
134
  b3.click(upsert, inputs=text, outputs=saved)
135
  b4.click(selectall, inputs=text, outputs=savedAll)
136
+ b5.click(tts, inputs={text,TTSchoice}, outputs=audio)
137
 
138
  demo.launch(share=True)
139