Spaces:
Runtime error
Runtime error
Commit
·
00fe9fd
1
Parent(s):
6473923
Update app.py
Browse files
app.py
CHANGED
@@ -22,6 +22,7 @@ def classify(im):
|
|
22 |
confidences = {label: float(probs[i]) for i, label in enumerate(labels)}
|
23 |
return confidences
|
24 |
|
|
|
25 |
# Set gradio interface
|
26 |
gr_interface = gr.Interface(classify, inputs='image', outputs='label', title='Bean Classification', description='Monitor your crops health in easier way')
|
27 |
# Launch gradio
|
|
|
22 |
confidences = {label: float(probs[i]) for i, label in enumerate(labels)}
|
23 |
return confidences
|
24 |
|
25 |
+
examples = [["img1.jpg"], ["img2.jpg"]]
|
26 |
# Set gradio interface
|
27 |
gr_interface = gr.Interface(classify, inputs='image', outputs='label', title='Bean Classification', description='Monitor your crops health in easier way')
|
28 |
# Launch gradio
|