Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -77,7 +77,8 @@ with gr.Blocks() as demo:
|
|
77 |
output = gr.Textbox(label="Prediction")
|
78 |
|
79 |
submit_button = gr.Button("Predict")
|
80 |
-
|
|
|
81 |
|
82 |
demo.launch()
|
83 |
|
|
|
77 |
output = gr.Textbox(label="Prediction")
|
78 |
|
79 |
submit_button = gr.Button("Predict")
|
80 |
+
# Unpack the dictionary values into a list of input components
|
81 |
+
submit_button.click(predict, inputs=list(input_components.values()), outputs=[output])
|
82 |
|
83 |
demo.launch()
|
84 |
|