multimodalart HF Staff commited on
Commit
dca85e2
·
verified ·
1 Parent(s): 049fd3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -245,7 +245,7 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as demo:
245
  )
246
 
247
  # Image upload triggers dimension update and control reset
248
- image.change(
249
  fn=update_dimensions_on_upload,
250
  inputs=[image],
251
  outputs=[width, height]
 
245
  )
246
 
247
  # Image upload triggers dimension update and control reset
248
+ image.upload(
249
  fn=update_dimensions_on_upload,
250
  inputs=[image],
251
  outputs=[width, height]