awacke1 commited on
Commit
57b4514
1 Parent(s): 4f27655

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
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
- 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)
 
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)