Spaces:
Sleeping
Sleeping
srishti-hf1110
commited on
Commit
·
4ccfdd0
1
Parent(s):
478d858
Update app.py
Browse files
app.py
CHANGED
@@ -26,6 +26,6 @@ def classify(im):
|
|
26 |
confidences = {label: float(probs[i]) for i, label in enumerate(labels)}
|
27 |
return confidences
|
28 |
|
29 |
-
interface = gr.Interface(classify, inputs='image', outputs='label', title='Bean plant disease classifier', description='Detect diseases in beans leaves using their images.')
|
30 |
|
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, inputs='image', outputs='label', title='Bean plant disease classifier', description='Detect diseases in beans leaves using their images.', examples=['bean-plant-example.jpeg', 'non-bean-leaf-example.jpeg'])
|
30 |
|
31 |
interface.launch(debug=False)
|