Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
32 |
-
|
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)
|