awacke1 commited on
Commit
54f3790
1 Parent(s): 6f02d87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -29,7 +29,8 @@ with demo:
29
  b1 = gr.Button("Recognize Speech")
30
  b2 = gr.Button("Classify Sentiment")
31
 
32
- b0.click(transcribe, inputs=[microphone, "state"], outputs=[text, "state"], live=True)
 
33
  b1.click(speech_to_text, inputs=audio_file, outputs=text)
34
  b2.click(text_to_sentiment, inputs=text, outputs=label)
35
 
 
29
  b1 = gr.Button("Recognize Speech")
30
  b2 = gr.Button("Classify Sentiment")
31
 
32
+ #b0.click(transcribe, inputs=[microphone, "state"], outputs=[text, "state"], live=True)
33
+ b0.click(transcribe, inputs=[microphone], outputs=[text])
34
  b1.click(speech_to_text, inputs=audio_file, outputs=text)
35
  b2.click(text_to_sentiment, inputs=text, outputs=label)
36