Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
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()
|