Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -65,7 +65,13 @@ with image_blocks as demo:
|
|
65 |
with gr.Group():
|
66 |
with gr.Row():
|
67 |
with gr.Column():
|
68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
dkernel = gr.Slider(minimum=11, maximum=55, step=2, value=11, label="Dilation Kernel Size")
|
70 |
diffusion_step = gr.Slider(minimum=10, maximum=200, step=5, value=20, label="Diffusion Time Step")
|
71 |
with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
|
|
65 |
with gr.Group():
|
66 |
with gr.Row():
|
67 |
with gr.Column():
|
68 |
+
im = gr.ImageEditor(
|
69 |
+
type="pil",
|
70 |
+
crop_size="1:1",
|
71 |
+
elem_id="image_upload",
|
72 |
+
label="Shadow Image"
|
73 |
+
).style(height=400)
|
74 |
+
# image = gr.Image(source='upload', tool='sketch', elem_id="image_upload", type="pil", label="Shadow Image").style(height=400)
|
75 |
dkernel = gr.Slider(minimum=11, maximum=55, step=2, value=11, label="Dilation Kernel Size")
|
76 |
diffusion_step = gr.Slider(minimum=10, maximum=200, step=5, value=20, label="Diffusion Time Step")
|
77 |
with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|