Linoy Tsaban
commited on
Commit
·
f2ae223
1
Parent(s):
2780232
Update app.py
Browse files
app.py
CHANGED
|
@@ -131,12 +131,12 @@ with gr.Blocks(css='style.css') as demo:
|
|
| 131 |
wts = gr.State(value=None)
|
| 132 |
with gr.Row():
|
| 133 |
input_image = gr.Image(label="Input Image", interactive=True)
|
| 134 |
-
input_image.style(height=
|
| 135 |
output_image = gr.Image(label=f"Edited Image", interactive=False)
|
| 136 |
-
output_image.style(height=
|
| 137 |
|
| 138 |
with gr.Row():
|
| 139 |
-
tar_prompt = gr.Textbox(lines=1, label="Describe
|
| 140 |
|
| 141 |
with gr.Row():
|
| 142 |
with gr.Column(scale=1, min_width=100):
|
|
@@ -148,7 +148,7 @@ with gr.Blocks(css='style.css') as demo:
|
|
| 148 |
with gr.Row():
|
| 149 |
with gr.Column():
|
| 150 |
#inversion
|
| 151 |
-
src_prompt = gr.Textbox(lines=1, label="Source Prompt", interactive=True, placeholder="
|
| 152 |
steps = gr.Number(value=100, precision=0, label="Num Diffusion Steps", interactive=True)
|
| 153 |
cfg_scale_src = gr.Slider(minimum=1, maximum=15, value=3.5, label=f"Source Guidance Scale", interactive=True)
|
| 154 |
|
|
|
|
| 131 |
wts = gr.State(value=None)
|
| 132 |
with gr.Row():
|
| 133 |
input_image = gr.Image(label="Input Image", interactive=True)
|
| 134 |
+
input_image.style(height=512, width=512)
|
| 135 |
output_image = gr.Image(label=f"Edited Image", interactive=False)
|
| 136 |
+
output_image.style(height=512, width=512)
|
| 137 |
|
| 138 |
with gr.Row():
|
| 139 |
+
tar_prompt = gr.Textbox(lines=1, label="Describe your desired edited output image", interactive=True)
|
| 140 |
|
| 141 |
with gr.Row():
|
| 142 |
with gr.Column(scale=1, min_width=100):
|
|
|
|
| 148 |
with gr.Row():
|
| 149 |
with gr.Column():
|
| 150 |
#inversion
|
| 151 |
+
src_prompt = gr.Textbox(lines=1, label="Source Prompt", interactive=True, placeholder="describe the original image")
|
| 152 |
steps = gr.Number(value=100, precision=0, label="Num Diffusion Steps", interactive=True)
|
| 153 |
cfg_scale_src = gr.Slider(minimum=1, maximum=15, value=3.5, label=f"Source Guidance Scale", interactive=True)
|
| 154 |
|