prithivMLmods commited on
Commit
96a88e8
·
verified ·
1 Parent(s): a2a8e37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -93,8 +93,7 @@ with gr.Blocks() as demo:
93
  image_input = gr.Image(type="numpy", label="Upload Image")
94
  analyze_btn = gr.Button("Classify / Predict")
95
 
96
- output_label = gr.Label(label="Prediction Scores") # Output on the right
97
-
98
- analyze_btn.click(fn=classify, inputs=[image_input], outputs=output_label)
99
 
100
  demo.launch()
 
93
  image_input = gr.Image(type="numpy", label="Upload Image")
94
  analyze_btn = gr.Button("Classify / Predict")
95
 
96
+ output_label = gr.Label(label="Prediction Scores")
97
+ analyze_btn.click(fn=classify, inputs=[image_input, selected_model], outputs=output_label)
 
98
 
99
  demo.launch()