hwberry2 commited on
Commit
8dcf68e
·
1 Parent(s): f687da5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -92,7 +92,7 @@ with gr.Blocks() as demo:
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)
96
  image_data.clear(do_nothing)
97
 
98
 
 
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.upload(classifyImage, image_data, model_prediction)
96
  image_data.clear(do_nothing)
97
 
98