Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,8 @@ with gr.Blocks() as demo:
|
|
15 |
with gr.Accordion("Click for Instructions:"):
|
16 |
gr.Markdown(
|
17 |
"""
|
18 |
-
* uploading an image will
|
|
|
19 |
""")
|
20 |
|
21 |
# Train, evaluate and test a ML
|
@@ -93,8 +94,8 @@ with gr.Blocks() as demo:
|
|
93 |
image_data = gr.Image(label="Upload Image", type="numpy", image_mode="L", shape=[28,28], invert_colors=True)
|
94 |
with gr.Column(scale=1):
|
95 |
model_prediction = gr.Text(label="Model Prediction", interactive=False)
|
96 |
-
|
97 |
-
|
98 |
|
99 |
|
100 |
# creates a local web server
|
|
|
15 |
with gr.Accordion("Click for Instructions:"):
|
16 |
gr.Markdown(
|
17 |
"""
|
18 |
+
* uploading an image will engage the model in image classsification
|
19 |
+
* trained on the following image types: 'T-shirt/top', 'Trouser', 'Pullover', 'Dress', 'Coat','Sandal', 'Shirt', 'Sneaker', 'Bag', 'Ankle boot'
|
20 |
""")
|
21 |
|
22 |
# Train, evaluate and test a ML
|
|
|
94 |
image_data = gr.Image(label="Upload Image", type="numpy", image_mode="L", shape=[28,28], invert_colors=True)
|
95 |
with gr.Column(scale=1):
|
96 |
model_prediction = gr.Text(label="Model Prediction", interactive=False)
|
97 |
+
image_data.change(classifyImage, image_data, model_prediction)
|
98 |
+
image_data.clear(do_nothing)
|
99 |
|
100 |
|
101 |
# creates a local web server
|