Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,8 +35,8 @@ def maize_disease_classifier(image):
|
|
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)
|
|
|
35 |
|
36 |
label = labels[pred[0].argmax()]
|
37 |
return label
|
38 |
+
################### Gradio Web APP ################################
|
39 |
+
title = "Maize Disease Classification App"
|
40 |
+
iface = gr.Interface(fn=maize_disease_classifier, inputs=gr.Image(shape=(299, 299)), outputs="text", title=title)
|
41 |
|
42 |
iface.launch(inline=False)
|