wissemkarous commited on
Commit
4f39314
1 Parent(s): 524689b
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -53,8 +53,8 @@ def classify_image(image):
53
  # Input component (No need for `shape` here)
54
  inputs = gr.Image()
55
 
56
- # Output component
57
- outputs = gr.outputs.Label(num_top_classes=3)
58
 
59
  # Create Gradio interface
60
  gr.Interface(fn=classify_image, inputs=inputs, outputs=outputs, title='Potato Plant Diseases Classifier').launch()
 
53
  # Input component (No need for `shape` here)
54
  inputs = gr.Image()
55
 
56
+ # Output component (Use directly)
57
+ outputs = gr.Label(num_top_classes=3)
58
 
59
  # Create Gradio interface
60
  gr.Interface(fn=classify_image, inputs=inputs, outputs=outputs, title='Potato Plant Diseases Classifier').launch()