devdata commited on
Commit
4f08df7
1 Parent(s): 49e6616

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -10,11 +10,9 @@ def predict(img):
10
  pred,pred_idx,probs = learn.predict(img)
11
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
12
 
13
- #title = "Irish potato diseases classfier"
14
- #description = "An app for Irish potato diseases Classisfication"
15
- #article="<p style='text-align: center'>The app identifies and classifies common Irish potato diseases: Late blight and Early blight.</p>"
16
  examples = ['image.jpg']
17
  interpretation='default'
18
  enable_queue=True
19
 
20
- gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(512, 512)),outputs=gr.outputs.Label(num_top_classes=3),examples=examples,interpretation=interpretation,enable_queue=enable_queue).launch()
 
 
10
  pred,pred_idx,probs = learn.predict(img)
11
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
12
 
 
 
 
13
  examples = ['image.jpg']
14
  interpretation='default'
15
  enable_queue=True
16
 
17
+ #gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(512, 512)),outputs=gr.outputs.Label(num_top_classes=3),examples=examples,interpretation=interpretation,enable_queue=enable_queue).launch()
18
+ gr.Interface(fn=predict,inputs=gr.components.Image(),outputs=gr.components.Label(num_top_classes=3),examples=examples,).launch()