andresgtn commited on
Commit
69447b1
β€’
1 Parent(s): b671049

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -27,9 +27,13 @@ def classify(im):
27
  return confidences
28
 
29
  #interface = gr.Interface(classify, gr.Image(shape=(200, 200)), 'text')
 
 
 
 
 
30
  interface = gr.Interface(classify, gr.Image(shape=(200, 200)), 'label',
31
- examples=[['sample_images/angular_leaf.png'],
32
- ['sample_images/bean_rust.png'],
33
- ['sample_images/healthy.png']])
34
  #demo.launch()
35
  interface.launch(debug=False)
 
27
  return confidences
28
 
29
  #interface = gr.Interface(classify, gr.Image(shape=(200, 200)), 'text')
30
+
31
+ sample_images=[['https://s3.amazonaws.com/moonup/production/uploads/1663933284359-611f9702593efbee33a4f7c9.png'],
32
+ ['https://s3.amazonaws.com/moonup/production/uploads/1663933284374-611f9702593efbee33a4f7c9.png'],
33
+ ['https://s3.amazonaws.com/moonup/production/uploads/1663933284412-611f9702593efbee33a4f7c9.png']]
34
+
35
  interface = gr.Interface(classify, gr.Image(shape=(200, 200)), 'label',
36
+ examples=sample_images)
37
+
 
38
  #demo.launch()
39
  interface.launch(debug=False)