Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -143,19 +143,19 @@ def generate_interpolation(gallery):
|
|
143 |
demo = gr.Blocks()
|
144 |
|
145 |
with demo:
|
146 |
-
with gr.Row():
|
147 |
# Left column (inputs)
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
|
160 |
b1.click(speech_to_text, inputs=audio_file, outputs=text)
|
161 |
b2.click(text_to_sentiment, inputs=text, outputs=label)
|
|
|
143 |
demo = gr.Blocks()
|
144 |
|
145 |
with demo:
|
146 |
+
#with gr.Row():
|
147 |
# Left column (inputs)
|
148 |
+
# with gr.Column():
|
149 |
+
audio_file = gr.inputs.Audio(source="microphone", type="filepath")
|
150 |
+
text = gr.Textbox()
|
151 |
+
label = gr.Label()
|
152 |
+
saved = gr.Textbox()
|
153 |
+
savedAll = gr.Textbox()
|
154 |
+
# with gr.Column():
|
155 |
+
b1 = gr.Button("Recognize Speech")
|
156 |
+
b2 = gr.Button("Classify Sentiment")
|
157 |
+
b3 = gr.Button("Save Speech to Text")
|
158 |
+
b4 = gr.Button("Retrieve All")
|
159 |
|
160 |
b1.click(speech_to_text, inputs=audio_file, outputs=text)
|
161 |
b2.click(text_to_sentiment, inputs=text, outputs=label)
|