Update app.py
Browse files
app.py
CHANGED
|
@@ -105,7 +105,7 @@ with gr.Blocks() as interface:
|
|
| 105 |
with gr.Row():
|
| 106 |
input_audio = gr.Audio(label="Input Audio", type="filepath")
|
| 107 |
submit_button = gr.Button("Submit")
|
| 108 |
-
output_label = [gr.Label("Prediction"), gr.Image(type='pil')
|
| 109 |
|
| 110 |
# Set the function to be called when the button is clicked
|
| 111 |
submit_button.click(get_predictions,transcribe, inputs=input_audio, outputs=output_label)
|
|
|
|
| 105 |
with gr.Row():
|
| 106 |
input_audio = gr.Audio(label="Input Audio", type="filepath")
|
| 107 |
submit_button = gr.Button("Submit")
|
| 108 |
+
output_label = [gr.Label("Prediction"), gr.Image(type='pil')] # Use a single Label instead of a list
|
| 109 |
|
| 110 |
# Set the function to be called when the button is clicked
|
| 111 |
submit_button.click(get_predictions,transcribe, inputs=input_audio, outputs=output_label)
|