moro23 commited on
Commit
4bfda83
1 Parent(s): 36f384c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,9 +34,9 @@ def maize_disease_classifier(image):
34
  }
35
 
36
  label = labels[pred[0].argmax()]
37
- return pred, result, label
38
 
39
 
40
- iface = gr.Interface(fn=maize_disease_classifier, inputs=gr.inputs.Image(shape=(299, 299)), outputs=["number", "number", "text"])
41
 
42
  iface.launch(inline=False)
 
34
  }
35
 
36
  label = labels[pred[0].argmax()]
37
+ return label
38
 
39
 
40
+ iface = gr.Interface(fn=maize_disease_classifier, inputs=gr.Image(shape=(299, 299)), outputs="text")
41
 
42
  iface.launch(inline=False)