pooyanrg commited on
Commit
9d3e8f3
·
1 Parent(s): 24e3d7d
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -313,16 +313,16 @@ with gr.Blocks() as demo:
313
  )
314
 
315
  image_bef.change(
316
- fn=display_image,
317
  inputs=[image_bef],
318
- outputs=[width, height],
319
  _js="(image) => { initializeEditor(); importBackground(image); return []; }",
320
  )
321
 
322
  image_aft.change(
323
- fn=display_image,
324
  inputs=[image_aft],
325
- outputs=[width, height],
326
  _js="(image) => { initializeEditor(); importBackground(image); return []; }",
327
  )
328
 
 
313
  )
314
 
315
  image_bef.change(
316
+ fn=None,
317
  inputs=[image_bef],
318
+ outputs=[],
319
  _js="(image) => { initializeEditor(); importBackground(image); return []; }",
320
  )
321
 
322
  image_aft.change(
323
+ fn=None,
324
  inputs=[image_aft],
325
+ outputs=[],
326
  _js="(image) => { initializeEditor(); importBackground(image); return []; }",
327
  )
328