AUMREDKA commited on
Commit
0ad789a
·
verified ·
1 Parent(s): 0bf782c

Fix clear button to remove uploaded image

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -195,12 +195,12 @@ with gr.Blocks(theme=THEME, title="Image Colorizer", head=HEAD) as demo:
195
  )
196
 
197
  def _clear():
198
- return None, PLACEHOLDER_HTML, None, None, None, gr.update(visible=False)
199
 
200
  clr.click(
201
  _clear,
202
  inputs=None,
203
- outputs=[result_state, out_html, mae_box, psnr_box, ssim_box, download_btn]
204
  )
205
 
206
  download_btn.click(
 
195
  )
196
 
197
  def _clear():
198
+ return None, None, PLACEHOLDER_HTML, None, None, None, gr.update(visible=False)
199
 
200
  clr.click(
201
  _clear,
202
  inputs=None,
203
+ outputs=[img_in, result_state, out_html, mae_box, psnr_box, ssim_box, download_btn]
204
  )
205
 
206
  download_btn.click(