Spaces:
Running
on
Zero
Running
on
Zero
fix examples
Browse files
app.py
CHANGED
@@ -224,16 +224,16 @@ with gr.Blocks() as demo:
|
|
224 |
preview_start = gr.Slider(label="Preview Start", value=0, minimum=0, maximum=30, step=1)
|
225 |
mode = gr.Checkbox(label="Creative Restoration", value=False)
|
226 |
prompt = gr.Textbox(label="Restoration prompts (Optional)", placeholder="")
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
with gr.Column():
|
228 |
output = gr.Image(label="InstantIR restored", type="pil")
|
229 |
index = gr.Slider(label="Restoration Previews", value=29, minimum=0, maximum=29, step=1)
|
230 |
preview = gr.Image(label="Preview", type="pil")
|
231 |
-
gr.Examples(
|
232 |
-
examples = [
|
233 |
-
"examples/wukong.png", "examples/lady.png", "examples/man.png", "examples/dog.png", "examples/panda.png", "examples/sculpture.png", "examples/cottage.png", "examples/Naruto.png", "examples/Konan.png"
|
234 |
-
],
|
235 |
-
inputs = [lq_img]
|
236 |
-
)
|
237 |
|
238 |
pipe_out = gr.Gallery(visible=False)
|
239 |
clear_btn.add([lq_img, output, preview])
|
|
|
224 |
preview_start = gr.Slider(label="Preview Start", value=0, minimum=0, maximum=30, step=1)
|
225 |
mode = gr.Checkbox(label="Creative Restoration", value=False)
|
226 |
prompt = gr.Textbox(label="Restoration prompts (Optional)", placeholder="")
|
227 |
+
gr.Examples(
|
228 |
+
examples = [
|
229 |
+
"./examples/wukong.png", "./examples/lady.png", "./examples/man.png", "./examples/dog.png", "./examples/panda.png", "./examples/sculpture.png", "./examples/cottage.png", "./examples/Naruto.png", "./examples/Konan.png"
|
230 |
+
],
|
231 |
+
inputs = [lq_img]
|
232 |
+
)
|
233 |
with gr.Column():
|
234 |
output = gr.Image(label="InstantIR restored", type="pil")
|
235 |
index = gr.Slider(label="Restoration Previews", value=29, minimum=0, maximum=29, step=1)
|
236 |
preview = gr.Image(label="Preview", type="pil")
|
|
|
|
|
|
|
|
|
|
|
|
|
237 |
|
238 |
pipe_out = gr.Gallery(visible=False)
|
239 |
clear_btn.add([lq_img, output, preview])
|