danielritchie commited on
Commit
a6d130c
·
verified ·
1 Parent(s): de576e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- submit_button.click(predict, inputs=[input_components], outputs=[output]) # Pass the dictionary of inputs
 
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