jiuface commited on
Commit
1e08257
1 Parent(s): b7c8482

Update src/app.py

Browse files
Files changed (1) hide show
  1. src/app.py +2 -2
src/app.py CHANGED
@@ -156,7 +156,7 @@ def process(
156
  solver_type=solver_type,
157
  )
158
 
159
- return (input_image, enhanced_image)
160
 
161
 
162
  with gr.Blocks() as demo:
@@ -167,7 +167,7 @@ with gr.Blocks() as demo:
167
  input_image = gr.Image(type="pil", label="Input Image")
168
  run_button = gr.ClearButton(components=None, value="Enhance Image")
169
  with gr.Column():
170
- output_slider = ImageSlider(label="Before / After")
171
  run_button.add(output_slider)
172
 
173
  with gr.Accordion("Advanced Options", open=False):
 
156
  solver_type=solver_type,
157
  )
158
 
159
+ return enhanced_image
160
 
161
 
162
  with gr.Blocks() as demo:
 
167
  input_image = gr.Image(type="pil", label="Input Image")
168
  run_button = gr.ClearButton(components=None, value="Enhance Image")
169
  with gr.Column():
170
+ output_slider = gr.Image(label="Output Image Component")
171
  run_button.add(output_slider)
172
 
173
  with gr.Accordion("Advanced Options", open=False):