prithivMLmods commited on
Commit
8603df8
·
verified ·
1 Parent(s): 7baf96e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -88,10 +88,11 @@ with gr.Blocks() as demo:
88
  for btn, name in zip(buttons, model_names):
89
  btn.click(fn=lambda n=name: select_model(n), inputs=[], outputs=[selected_model] + buttons)
90
 
91
- with gr.Column():
92
- image_input = gr.Image(type="numpy", label="Upload Image")
93
- analyze_btn = gr.Button("Classify / Predict")
94
- output_label = gr.Label(label="Prediction Scores")
95
- analyze_btn.click(fn=classify, inputs=[image_input, selected_model], outputs=output_label)
 
96
 
97
  demo.launch()
 
88
  for btn, name in zip(buttons, model_names):
89
  btn.click(fn=lambda n=name: select_model(n), inputs=[], outputs=[selected_model] + buttons)
90
 
91
+ with gr.Row():
92
+ with gr.Column():
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
  demo.launch()