Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ with image_blocks as demo:
|
|
64 |
with gr.Column():
|
65 |
image = gr.Image(source='upload', tool='sketch', elem_id="image_upload", type="pil", label="Shadow Image").style(height=400)
|
66 |
dkernel = gr.Slider(minimum=11, maximum=55, step=2, value=11, label="Dilation Kernel Size")
|
67 |
-
diffusion_step = gr.Slider(minimum=10, maximum=200, step=5, value=
|
68 |
with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
69 |
with gr.Column():
|
70 |
btn = gr.Button("Removal").style(
|
@@ -81,8 +81,8 @@ with image_blocks as demo:
|
|
81 |
image_out = gr.Image(label="Removal Result", elem_id="output-img")
|
82 |
with gr.Row():
|
83 |
gr.Examples(examples=[
|
84 |
-
'examples/web-shadow0248.jpg',
|
85 |
'examples/lssd2025.jpg'
|
|
|
86 |
], inputs=[image])
|
87 |
|
88 |
btn.click(fn=predict, inputs=[image, dkernel, diffusion_step], outputs=[image_out])
|
|
|
64 |
with gr.Column():
|
65 |
image = gr.Image(source='upload', tool='sketch', elem_id="image_upload", type="pil", label="Shadow Image").style(height=400)
|
66 |
dkernel = gr.Slider(minimum=11, maximum=55, step=2, value=11, label="Dilation Kernel Size")
|
67 |
+
diffusion_step = gr.Slider(minimum=10, maximum=200, step=5, value=20, label="Diffusion Time Step")
|
68 |
with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
69 |
with gr.Column():
|
70 |
btn = gr.Button("Removal").style(
|
|
|
81 |
image_out = gr.Image(label="Removal Result", elem_id="output-img")
|
82 |
with gr.Row():
|
83 |
gr.Examples(examples=[
|
|
|
84 |
'examples/lssd2025.jpg'
|
85 |
+
'examples/web-shadow0248.jpg',
|
86 |
], inputs=[image])
|
87 |
|
88 |
btn.click(fn=predict, inputs=[image, dkernel, diffusion_step], outputs=[image_out])
|