Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,9 @@ with gr.Blocks() as demo:
|
|
84 |
|
85 |
return predicted_label
|
86 |
|
87 |
-
|
|
|
|
|
88 |
# Creates the Gradio interface objects
|
89 |
with gr.Row():
|
90 |
with gr.Column(scale=2):
|
@@ -92,7 +94,7 @@ with gr.Blocks() as demo:
|
|
92 |
with gr.Column(scale=1):
|
93 |
model_prediction = gr.Text(label="Model Prediction", interactive=False)
|
94 |
image_data.change(classifyImage, image_data, model_prediction)
|
95 |
-
image_data.clear(
|
96 |
|
97 |
|
98 |
# creates a local web server
|
|
|
84 |
|
85 |
return predicted_label
|
86 |
|
87 |
+
def do_nothing():
|
88 |
+
return
|
89 |
+
|
90 |
# Creates the Gradio interface objects
|
91 |
with gr.Row():
|
92 |
with gr.Column(scale=2):
|
|
|
94 |
with gr.Column(scale=1):
|
95 |
model_prediction = gr.Text(label="Model Prediction", interactive=False)
|
96 |
image_data.change(classifyImage, image_data, model_prediction)
|
97 |
+
image_data.clear(do_nothing)
|
98 |
|
99 |
|
100 |
# creates a local web server
|