saritha commited on
Commit
5df3228
·
1 Parent(s): d079f49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -6
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
- inputs=gr.Image(),
41
- outputs=gr.Label(num_top_classes=7),
42
- live=True,
43
- title=title,
44
- description=description).launch()
 
 
 
 
 
 
 
 
 
 
 
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()