Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ with demo:
|
|
58 |
audio_file = gr.inputs.Audio(source="microphone", type="filepath")
|
59 |
text = gr.Textbox()
|
60 |
label = gr.Label()
|
61 |
-
saved = gr.
|
62 |
|
63 |
b1 = gr.Button("Recognize Speech")
|
64 |
b2 = gr.Button("Classify Sentiment")
|
@@ -66,6 +66,6 @@ with demo:
|
|
66 |
|
67 |
b1.click(speech_to_text, inputs=audio_file, outputs=text)
|
68 |
b2.click(text_to_sentiment, inputs=text, outputs=label)
|
69 |
-
b3.click(
|
70 |
|
71 |
demo.launch(share=True)
|
|
|
58 |
audio_file = gr.inputs.Audio(source="microphone", type="filepath")
|
59 |
text = gr.Textbox()
|
60 |
label = gr.Label()
|
61 |
+
saved = gr.Textbox()
|
62 |
|
63 |
b1 = gr.Button("Recognize Speech")
|
64 |
b2 = gr.Button("Classify Sentiment")
|
|
|
66 |
|
67 |
b1.click(speech_to_text, inputs=audio_file, outputs=text)
|
68 |
b2.click(text_to_sentiment, inputs=text, outputs=label)
|
69 |
+
b3.click(upsert, inputs=text, outputs=saved)
|
70 |
|
71 |
demo.launch(share=True)
|