Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|