Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,6 @@ from tensorflow.keras.preprocessing.image import load_img
|
|
14 |
|
15 |
import gradio as gr
|
16 |
|
17 |
-
def get_y(o):
|
18 |
-
return [parent_label(o)]
|
19 |
|
20 |
## lets load the model
|
21 |
model = keras.models.load_model('xception_v1_15_0.812.h5')
|
@@ -39,7 +37,6 @@ def maize_disease_classifier(image):
|
|
39 |
return pred, result, label
|
40 |
|
41 |
|
42 |
-
iface = gr.Interface(fn=maize_disease_classifier, inputs=gr.inputs.Image(shape=(299, 299)),
|
43 |
-
outputs=["number", "number", "text"])
|
44 |
|
45 |
iface.launch(inline=False)
|
|
|
14 |
|
15 |
import gradio as gr
|
16 |
|
|
|
|
|
17 |
|
18 |
## lets load the model
|
19 |
model = keras.models.load_model('xception_v1_15_0.812.h5')
|
|
|
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)
|