Spaces:
Runtime error
Runtime error
Linoy Tsaban
commited on
Commit
•
77d316c
1
Parent(s):
fdf34ba
Update app.py
Browse files
app.py
CHANGED
@@ -104,6 +104,16 @@ intro = """<h1 style="font-weight: 900; margin-bottom: 7px;">
|
|
104 |
<p/>"""
|
105 |
with gr.Blocks() as demo:
|
106 |
gr.HTML(intro)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
with gr.Row():
|
108 |
with gr.Column(scale=1, min_width=100):
|
109 |
generate_button = gr.Button("Generate")
|
@@ -111,15 +121,7 @@ with gr.Blocks() as demo:
|
|
111 |
# reset_button = gr.Button("Reset")
|
112 |
# with gr.Column(scale=3):
|
113 |
# instruction = gr.Textbox(lines=1, label="Edit Instruction", interactive=True)
|
114 |
-
|
115 |
-
with gr.Row():
|
116 |
-
input_image = gr.Image(label="Input Image", type="pil", interactive=True)
|
117 |
-
ddpm_edited_image = gr.Image(label=f"Reconstructed Image", type="pil", interactive=False)
|
118 |
-
sega_edited_image = gr.Image(label=f"Edited Image", type="pil", interactive=False)
|
119 |
-
input_image.style(height=512, width=512)
|
120 |
-
ddpm_edited_image.style(height=512, width=512)
|
121 |
-
sega_edited_image.style(height=512, width=512)
|
122 |
-
|
123 |
with gr.Row():
|
124 |
src_prompt = gr.Textbox(lines=1, label="Source Prompt", interactive=True)
|
125 |
#edit
|
|
|
104 |
<p/>"""
|
105 |
with gr.Blocks() as demo:
|
106 |
gr.HTML(intro)
|
107 |
+
|
108 |
+
|
109 |
+
with gr.Row():
|
110 |
+
input_image = gr.Image(label="Input Image",interactive=True)
|
111 |
+
ddpm_edited_image = gr.Image(label=f"Reconstructed Image", interactive=False)
|
112 |
+
sega_edited_image = gr.Image(label=f"Edited Image", interactive=False)
|
113 |
+
input_image.style(height=512, width=512)
|
114 |
+
ddpm_edited_image.style(height=512, width=512)
|
115 |
+
sega_edited_image.style(height=512, width=512)
|
116 |
+
|
117 |
with gr.Row():
|
118 |
with gr.Column(scale=1, min_width=100):
|
119 |
generate_button = gr.Button("Generate")
|
|
|
121 |
# reset_button = gr.Button("Reset")
|
122 |
# with gr.Column(scale=3):
|
123 |
# instruction = gr.Textbox(lines=1, label="Edit Instruction", interactive=True)
|
124 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
with gr.Row():
|
126 |
src_prompt = gr.Textbox(lines=1, label="Source Prompt", interactive=True)
|
127 |
#edit
|