jiuface commited on
Commit
9e8bd2e
·
1 Parent(s): 62abcd3

add image slider

Browse files
Files changed (1) hide show
  1. src/app.py +2 -2
src/app.py CHANGED
@@ -136,7 +136,7 @@ def process(
136
  solver_type=solver_type,
137
  )
138
 
139
- return enhanced_image
140
 
141
 
142
  with gr.Blocks() as demo:
@@ -147,7 +147,7 @@ with gr.Blocks() as demo:
147
  input_image = gr.Image(type="pil", label="Input Image")
148
  run_button = gr.ClearButton(components=None, value="Enhance Image")
149
  with gr.Column():
150
- output_slider = gr.Image(type="filepath", label="Output Image Component")
151
  run_button.add(output_slider)
152
 
153
  with gr.Accordion("Advanced Options", open=False):
 
136
  solver_type=solver_type,
137
  )
138
 
139
+ return [input_image, enhanced_image]
140
 
141
 
142
  with gr.Blocks() as demo:
 
147
  input_image = gr.Image(type="pil", label="Input Image")
148
  run_button = gr.ClearButton(components=None, value="Enhance Image")
149
  with gr.Column():
150
+ output_slider = ImageSlider(label="Generate image", type="filepath", slider_color="pink")
151
  run_button.add(output_slider)
152
 
153
  with gr.Accordion("Advanced Options", open=False):