Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ with gr.Blocks() as demo:
|
|
89 |
# Creates the Gradio interface objects
|
90 |
with gr.Row():
|
91 |
with gr.Column(scale=2):
|
92 |
-
image_data = gr.Image(label="Upload Image", type="numpy")
|
93 |
with gr.Column(scale=1):
|
94 |
model_prediction = gr.Text(label="Model Prediction", interactive=False)
|
95 |
image_data.change(classifyImage, image_data, model_prediction)
|
|
|
89 |
# Creates the Gradio interface objects
|
90 |
with gr.Row():
|
91 |
with gr.Column(scale=2):
|
92 |
+
image_data = gr.Image(label="Upload Image", type="numpy", image_mode="L")
|
93 |
with gr.Column(scale=1):
|
94 |
model_prediction = gr.Text(label="Model Prediction", interactive=False)
|
95 |
image_data.change(classifyImage, image_data, model_prediction)
|