Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -198,7 +198,10 @@ DEFAULT_VALUES = {
|
|
198 |
}
|
199 |
|
200 |
# Create interface components
|
201 |
-
with gr.Blocks() as demo:
|
|
|
|
|
|
|
202 |
with gr.Row():
|
203 |
with gr.Column():
|
204 |
input_image = gr.Image(label="Input Image")
|
@@ -209,7 +212,11 @@ with gr.Blocks() as demo:
|
|
209 |
num_steps = gr.Slider(minimum=1, maximum=50, value=DEFAULT_VALUES["num_steps"], step=1, label="Number of Steps")
|
210 |
seed = gr.Number(label="Seed", value=DEFAULT_VALUES["seed"])
|
211 |
upscale_factor = gr.Slider(minimum=1, maximum=4, value=DEFAULT_VALUES["upscale_factor"], step=1, label="Upscale Factor")
|
212 |
-
color_fix_method = gr.
|
|
|
|
|
|
|
|
|
213 |
|
214 |
# Add buttons
|
215 |
with gr.Row():
|
@@ -256,3 +263,4 @@ with gr.Blocks() as demo:
|
|
256 |
|
257 |
if __name__ == "__main__":
|
258 |
demo.launch()
|
|
|
|
198 |
}
|
199 |
|
200 |
# Create interface components
|
201 |
+
with gr.Blocks(title="Controllable Conditional Super-Resolution") as demo:
|
202 |
+
gr.Markdown("## Controllable Conditional Super-Resolution")
|
203 |
+
gr.Markdown("Upload an image to enhance its resolution using CCSR.")
|
204 |
+
|
205 |
with gr.Row():
|
206 |
with gr.Column():
|
207 |
input_image = gr.Image(label="Input Image")
|
|
|
212 |
num_steps = gr.Slider(minimum=1, maximum=50, value=DEFAULT_VALUES["num_steps"], step=1, label="Number of Steps")
|
213 |
seed = gr.Number(label="Seed", value=DEFAULT_VALUES["seed"])
|
214 |
upscale_factor = gr.Slider(minimum=1, maximum=4, value=DEFAULT_VALUES["upscale_factor"], step=1, label="Upscale Factor")
|
215 |
+
color_fix_method = gr.Dropdown(
|
216 |
+
choices=["none", "wavelet", "adain"],
|
217 |
+
label="Color Fix Method",
|
218 |
+
value=DEFAULT_VALUES["color_fix_method"]
|
219 |
+
)
|
220 |
|
221 |
# Add buttons
|
222 |
with gr.Row():
|
|
|
263 |
|
264 |
if __name__ == "__main__":
|
265 |
demo.launch()
|
266 |
+
|