neerajprad commited on
Commit
2f50f13
·
1 Parent(s): ede35d1

Colab update - add examples; fix interface

Browse files
app.py CHANGED
@@ -20,9 +20,12 @@ def classify(im):
20
 
21
 
22
  interface = gr.Interface(
 
 
 
23
  fn=classify,
24
  inputs=gr.Image(shape=(224, 224)),
25
  outputs=gr.Label(num_top_classes=3),
26
  )
27
 
28
- interface.launch(debug=True, share=True)
 
20
 
21
 
22
  interface = gr.Interface(
23
+ title="Leaf Spot Classifier"
24
+ description="Classify the leaf into one of: angular_leaf_spot, bean_rust, healthy',
25
+ examples="examples"
26
  fn=classify,
27
  inputs=gr.Image(shape=(224, 224)),
28
  outputs=gr.Label(num_top_classes=3),
29
  )
30
 
31
+ interface.launch(debug=True)
examples/angular_leaf_spot_test.0.jpg ADDED
examples/bean_rust_test.32.jpg ADDED
examples/healthy_test.15.jpg ADDED