Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,9 +36,19 @@ def predict(img):
|
|
36 |
|
37 |
title = "Plant Disease Classifier"
|
38 |
description = "Please upload a photo containing a plant leaf."
|
39 |
-
iface = gr.Interface(predict,
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
title = "Plant Disease Classifier"
|
38 |
description = "Please upload a photo containing a plant leaf."
|
39 |
+
# iface = gr.Interface(predict,
|
40 |
+
# inputs=gr.Image(),
|
41 |
+
# outputs=gr.Label(num_top_classes=7),
|
42 |
+
# live=True,
|
43 |
+
# title=title,
|
44 |
+
# description=description).launch()
|
45 |
+
|
46 |
+
iface = gr.Interface(
|
47 |
+
fn=predict,
|
48 |
+
inputs="image",
|
49 |
+
outputs=["text"],
|
50 |
+
examples=[
|
51 |
+
['examples/PotatoEarlyBlight4.JPG'],
|
52 |
+
['examples/TomatoYellowCurlVirus4.JPG'],
|
53 |
+
])
|
54 |
+
iface.launch()
|