Spaces:
Running
on
A10G
Running
on
A10G
Update app.py (#16)
Browse files- Update app.py (96e393f3c2b8a289915d18591299e484684c2fc5)
- Update app.py (cc0a24912f26939443aba9564bdf21c3c8aecf09)
app.py
CHANGED
@@ -168,7 +168,6 @@ def edit(input_image,
|
|
168 |
seed_everything(seed)
|
169 |
|
170 |
if do_inversion or randomize_seed:
|
171 |
-
input_image = input_image["composite"]
|
172 |
zs_tensor, wts_tensor = pipe.invert(
|
173 |
image_path = input_image,
|
174 |
source_prompt =src_prompt,
|
@@ -473,7 +472,7 @@ with gr.Blocks(css="style.css") as demo:
|
|
473 |
image_caption = gr.State(value="")
|
474 |
|
475 |
with gr.Row():
|
476 |
-
input_image = gr.
|
477 |
ddpm_edited_image = gr.Image(label=f"Pure DDPM Inversion Image", interactive=False, visible=False)
|
478 |
sega_edited_image = gr.Image(label=f"LEDITS Edited Image", interactive=False, elem_id="output_image")
|
479 |
|
|
|
168 |
seed_everything(seed)
|
169 |
|
170 |
if do_inversion or randomize_seed:
|
|
|
171 |
zs_tensor, wts_tensor = pipe.invert(
|
172 |
image_path = input_image,
|
173 |
source_prompt =src_prompt,
|
|
|
472 |
image_caption = gr.State(value="")
|
473 |
|
474 |
with gr.Row():
|
475 |
+
input_image = gr.Image(label="Input Image", interactive=True, elem_id="input_image")
|
476 |
ddpm_edited_image = gr.Image(label=f"Pure DDPM Inversion Image", interactive=False, visible=False)
|
477 |
sega_edited_image = gr.Image(label=f"LEDITS Edited Image", interactive=False, elem_id="output_image")
|
478 |
|