Spaces:
jfforero
/
Runtime error

jfforero commited on
Commit
05889af
·
verified ·
1 Parent(s): d47a933

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- output_labels = get_predictions(input_audio) # Call the function directly
61
 
62
  # Set the function to be called when the button is clicked
63
- submit_button.click(get_predictions, inputs=input_audio, outputs=output_labels)
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()