Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -157,10 +157,11 @@ with demo:
|
|
157 |
b2 = gr.Button("Classify Sentiment")
|
158 |
b3 = gr.Button("Save Speech to Text")
|
159 |
b4 = gr.Button("Retrieve All")
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
|
|
164 |
|
165 |
with gr.Row():
|
166 |
# Left column (inputs)
|
|
|
157 |
b2 = gr.Button("Classify Sentiment")
|
158 |
b3 = gr.Button("Save Speech to Text")
|
159 |
b4 = gr.Button("Retrieve All")
|
160 |
+
|
161 |
+
b1.click(speech_to_text, inputs=audio_file, outputs=text)
|
162 |
+
b2.click(text_to_sentiment, inputs=text, outputs=label)
|
163 |
+
b3.click(upsert, inputs=text, outputs=saved)
|
164 |
+
b4.click(selectall, inputs=text, outputs=savedAll)
|
165 |
|
166 |
with gr.Row():
|
167 |
# Left column (inputs)
|