Update app.py
Browse files
app.py
CHANGED
@@ -57,9 +57,9 @@ with gr.Blocks() as interface:
|
|
57 |
with gr.Row():
|
58 |
input_audio = gr.Audio(label="Input Audio", type="filepath")
|
59 |
submit_button = gr.Button("Submit")
|
60 |
-
|
61 |
|
62 |
# Set the function to be called when the button is clicked
|
63 |
-
submit_button.click(get_predictions, inputs=input_audio, outputs=
|
64 |
|
65 |
interface.launch()
|
|
|
57 |
with gr.Row():
|
58 |
input_audio = gr.Audio(label="Input Audio", type="filepath")
|
59 |
submit_button = gr.Button("Submit")
|
60 |
+
output_label = gr.Label("Prediction") # Use a single Label instead of a list
|
61 |
|
62 |
# Set the function to be called when the button is clicked
|
63 |
+
submit_button.click(get_predictions, inputs=input_audio, outputs=output_label)
|
64 |
|
65 |
interface.launch()
|