IndianServers commited on
Commit
4f1f340
·
verified ·
1 Parent(s): 5b4a004

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,8 +18,8 @@ def predict(image):
18
  return predictions.numpy().tolist() # Adjust output processing as needed
19
 
20
  # Set up the Gradio interface
21
- image_input = gr.Image(shape=(640, 640), type="pil")
22
- label_output = gr.Label()
23
 
24
  interface = gr.Interface(fn=predict, inputs=image_input, outputs=label_output)
25
  interface.launch()
 
18
  return predictions.numpy().tolist() # Adjust output processing as needed
19
 
20
  # Set up the Gradio interface
21
+ image_input = gr.inputs.Image(type="pil")
22
+ label_output = gr.outputs.Label(num_top_classes=3)
23
 
24
  interface = gr.Interface(fn=predict, inputs=image_input, outputs=label_output)
25
  interface.launch()