Linoy Tsaban
commited on
Commit
·
d64d565
1
Parent(s):
b885715
Update app.py
Browse files
app.py
CHANGED
|
@@ -108,7 +108,12 @@ For faster inference without waiting in queue, you may duplicate the space and u
|
|
| 108 |
with gr.Blocks() as demo:
|
| 109 |
gr.HTML(intro)
|
| 110 |
|
| 111 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
with gr.Row():
|
| 113 |
input_image = gr.Image(label="Input Image", interactive=True)
|
| 114 |
ddpm_edited_image = gr.Image(label=f"DDPM Reconstructed Image", interactive=False)
|
|
@@ -125,11 +130,7 @@ with gr.Blocks() as demo:
|
|
| 125 |
# with gr.Column(scale=3):
|
| 126 |
# instruction = gr.Textbox(lines=1, label="Edit Instruction", interactive=True)
|
| 127 |
|
| 128 |
-
|
| 129 |
-
src_prompt = gr.Textbox(lines=1, label="Source Prompt", interactive=True)
|
| 130 |
-
#edit
|
| 131 |
-
tar_prompt = gr.Textbox(lines=1, label="Target Prompt", interactive=True)
|
| 132 |
-
edit_concept = gr.Textbox(lines=1, label="SEGA Edit Concept", interactive=True)
|
| 133 |
|
| 134 |
# with gr.Row():
|
| 135 |
with gr.Accordion("Advanced Options", open=False):
|
|
|
|
| 108 |
with gr.Blocks() as demo:
|
| 109 |
gr.HTML(intro)
|
| 110 |
|
| 111 |
+
with gr.Row():
|
| 112 |
+
src_prompt = gr.Textbox(lines=1, label="Source Prompt", interactive=True)
|
| 113 |
+
#edit
|
| 114 |
+
tar_prompt = gr.Textbox(lines=1, label="Target Prompt", interactive=True)
|
| 115 |
+
edit_concept = gr.Textbox(lines=1, label="SEGA Edit Concept", interactive=True)
|
| 116 |
+
|
| 117 |
with gr.Row():
|
| 118 |
input_image = gr.Image(label="Input Image", interactive=True)
|
| 119 |
ddpm_edited_image = gr.Image(label=f"DDPM Reconstructed Image", interactive=False)
|
|
|
|
| 130 |
# with gr.Column(scale=3):
|
| 131 |
# instruction = gr.Textbox(lines=1, label="Edit Instruction", interactive=True)
|
| 132 |
|
| 133 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
|
| 135 |
# with gr.Row():
|
| 136 |
with gr.Accordion("Advanced Options", open=False):
|