hshetty commited on
Commit
3892c9a
·
1 Parent(s): 4a860a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -23,8 +23,10 @@ def classify(im):
23
 
24
 
25
  interface = gr.Interface(fn=classify,
26
- inputs=gr.inputs.Image(type="pil"),
27
  outputs=gr.Label(num_top_classes=3),
 
 
28
  examples=["https://datasets-server.huggingface.co/assets/beans/--/default/validation/3/image/image.jpg",
29
  "https://datasets-server.huggingface.co/assets/beans/--/default/test/20/image/image.jpg",
30
  "https://datasets-server.huggingface.co/assets/beans/--/default/test/70/image/image.jpg"])
 
23
 
24
 
25
  interface = gr.Interface(fn=classify,
26
+ inputs="image",
27
  outputs=gr.Label(num_top_classes=3),
28
+ title="Bean leaf disease classifier",
29
+ description="This is a bean leaf disease classifier app created as part of CoRise End to End Vision application project",
30
  examples=["https://datasets-server.huggingface.co/assets/beans/--/default/validation/3/image/image.jpg",
31
  "https://datasets-server.huggingface.co/assets/beans/--/default/test/20/image/image.jpg",
32
  "https://datasets-server.huggingface.co/assets/beans/--/default/test/70/image/image.jpg"])