Spaces:
Running
on
Zero
Running
on
Zero
add image slider
Browse files- 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 =
|
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):
|