Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -189,11 +189,11 @@ with gr.Blocks() as demo:
|
|
189 |
with gr.Tab(label="d-edit"):
|
190 |
with gr.Row():
|
191 |
with gr.Column():
|
|
|
192 |
example_inps = [['./img.png'],['./img2.png'],['./img3.png'],['./img4.png']]
|
193 |
gr.Examples(examples=example_inps, inputs=[canvas],
|
194 |
label='examples', cache_examples='lazy', outputs=[],
|
195 |
fn=change_image)
|
196 |
-
canvas = gr.Image(value = "./img.png", type="numpy", label="Draw Mask", show_label=True, height=LENGTH, width=LENGTH, interactive=True)
|
197 |
gr.Markdown("""<p style="text-align: left; font-size: 16px">Each image requires a single segmentation and optimization operation.<br>Afterwards, you can modify the mask ID and prompt for image editing. <br>The link of D-edit paper: https://arxiv.org/abs/2403.04880v2</p>""")
|
198 |
|
199 |
with gr.Column():
|
|
|
189 |
with gr.Tab(label="d-edit"):
|
190 |
with gr.Row():
|
191 |
with gr.Column():
|
192 |
+
canvas = gr.Image(value = "./img.png", type="numpy", label="Draw Mask", show_label=True, height=LENGTH, width=LENGTH, interactive=True)
|
193 |
example_inps = [['./img.png'],['./img2.png'],['./img3.png'],['./img4.png']]
|
194 |
gr.Examples(examples=example_inps, inputs=[canvas],
|
195 |
label='examples', cache_examples='lazy', outputs=[],
|
196 |
fn=change_image)
|
|
|
197 |
gr.Markdown("""<p style="text-align: left; font-size: 16px">Each image requires a single segmentation and optimization operation.<br>Afterwards, you can modify the mask ID and prompt for image editing. <br>The link of D-edit paper: https://arxiv.org/abs/2403.04880v2</p>""")
|
198 |
|
199 |
with gr.Column():
|