Spaces:
Runtime error
Runtime error
jacquelinegrimm
commited on
Commit
•
883a5f8
1
Parent(s):
faaf551
Update app.py
Browse files
app.py
CHANGED
@@ -28,8 +28,7 @@ def classify_image(img):
|
|
28 |
return dict(zip(categories, map(float,probs)))
|
29 |
|
30 |
#Creates a Gradio interface for image classification
|
31 |
-
examples = ['PotatoHealthy1.jpeg', 'PotatoEarlyBlight1.jpeg', '
|
32 |
-
|
33 |
-
'AppleCedarRust4.jpeg']
|
34 |
intf = gr.Interface(fn=classify_image, inputs='image', outputs='label', examples=examples)
|
35 |
intf.launch(inline=False)
|
|
|
28 |
return dict(zip(categories, map(float,probs)))
|
29 |
|
30 |
#Creates a Gradio interface for image classification
|
31 |
+
examples = ['PotatoHealthy1.jpeg', 'PotatoEarlyBlight1.jpeg', 'TomatoYellowCurlVirus2.jpeg',
|
32 |
+
'CornCommonRust2.jpeg', 'AppleScab1.jpeg', 'AppleCedarRust4.jpeg']
|
|
|
33 |
intf = gr.Interface(fn=classify_image, inputs='image', outputs='label', examples=examples)
|
34 |
intf.launch(inline=False)
|