Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,6 +26,10 @@ def classify(im):
|
|
26 |
confidences = {label: float(probs[i]) for i, label in enumerate(labels)}
|
27 |
return confidences
|
28 |
|
29 |
-
interface = gr.Interface(classify, gr.Image(shape=(200, 200)), 'text')
|
|
|
|
|
|
|
|
|
30 |
#demo.launch()
|
31 |
interface.launch(debug=False)
|
|
|
26 |
confidences = {label: float(probs[i]) for i, label in enumerate(labels)}
|
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)
|