Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,9 +34,9 @@ def maize_disease_classifier(image):
|
|
34 |
}
|
35 |
|
36 |
label = labels[pred[0].argmax()]
|
37 |
-
return
|
38 |
|
39 |
|
40 |
-
iface = gr.Interface(fn=maize_disease_classifier, inputs=gr.
|
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)
|