zhiweili commited on
Commit
4eb9bf3
·
1 Parent(s): 45748ff

fix not defined

Browse files
Files changed (1) hide show
  1. app_upscale.py +3 -2
app_upscale.py CHANGED
@@ -61,6 +61,7 @@ def create_demo() -> gr.Blocks:
61
  with gr.Column():
62
  input_image = gr.Image(label="Input Image", type="pil")
63
  with gr.Column():
 
64
  origin_area_image = gr.Image(label="Origin Area Image", format="png", type="pil", interactive=False, visible=False)
65
  upscaled_image = gr.Image(label="Upscaled Image", format="png", type="pil", interactive=False)
66
  download_path = gr.File(label="Download the output image", interactive=False)
@@ -80,8 +81,8 @@ def create_demo() -> gr.Blocks:
80
  outputs=[upscaled_image, generated_cost],
81
  ).success(
82
  fn=restore_result,
83
- inputs=[croper, category, enhanced_image],
84
- outputs=[upscaled_image, download_path],
85
  )
86
 
87
  return demo
 
61
  with gr.Column():
62
  input_image = gr.Image(label="Input Image", type="pil")
63
  with gr.Column():
64
+ restored_image = gr.Image(label="Restored Image", format="png", type="pil", interactive=False)
65
  origin_area_image = gr.Image(label="Origin Area Image", format="png", type="pil", interactive=False, visible=False)
66
  upscaled_image = gr.Image(label="Upscaled Image", format="png", type="pil", interactive=False)
67
  download_path = gr.File(label="Download the output image", interactive=False)
 
81
  outputs=[upscaled_image, generated_cost],
82
  ).success(
83
  fn=restore_result,
84
+ inputs=[croper, category, upscaled_image],
85
+ outputs=[restored_image, download_path],
86
  )
87
 
88
  return demo