jfforero commited on
Commit
532d824
1 Parent(s): 09ef204

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -89,11 +89,11 @@ with gr.Blocks() as interface:
89
  with gr.Tabs():
90
  with gr.Tab("Acoustic and Semantic Predictions"):
91
  with gr.Row():
92
- input_audio = gr.Audio(label="Input Audio", type='file') # Modify type to 'file'
93
  submit_button = gr.Button("Submit")
94
  output_label = [gr.Label("Prediction"), gr.Image(type='pil')] # Use a single Label instead of a list
95
 
96
  # Set the function to be called when the button is clicked
97
  submit_button.click(get_predictions, inputs=input_audio, outputs=output_label)
98
 
99
- interface.launch()
 
89
  with gr.Tabs():
90
  with gr.Tab("Acoustic and Semantic Predictions"):
91
  with gr.Row():
92
+ input_audio = gr.Audio(label="Input Audio", type="filepath")
93
  submit_button = gr.Button("Submit")
94
  output_label = [gr.Label("Prediction"), gr.Image(type='pil')] # Use a single Label instead of a list
95
 
96
  # Set the function to be called when the button is clicked
97
  submit_button.click(get_predictions, inputs=input_audio, outputs=output_label)
98
 
99
+ interface.launch()