Spaces:
Runtime error
Runtime error
Linoy Tsaban
commited on
Commit
β’
04afdc5
1
Parent(s):
f7759e6
Update app.py
Browse files
app.py
CHANGED
@@ -152,7 +152,7 @@ with gr.Blocks(css='style.css') as demo:
|
|
152 |
src_prompt = gr.Textbox(lines=1, label="Source Prompt", interactive=True, placeholder="describe the original image")
|
153 |
steps = gr.Number(value=100, precision=0, label="Num Diffusion Steps", interactive=True)
|
154 |
cfg_scale_src = gr.Slider(minimum=1, maximum=15, value=3.5, label=f"Source Guidance Scale", interactive=True)
|
155 |
-
|
156 |
# reconstruction
|
157 |
skip = gr.Slider(minimum=0, maximum=40, value=36, precision=0, label="Skip Steps", interactive=True)
|
158 |
cfg_scale_tar = gr.Slider(minimum=7, maximum=18,value=15, label=f"Target Guidance Scale", interactive=True)
|
@@ -170,7 +170,8 @@ with gr.Blocks(css='style.css') as demo:
|
|
170 |
cfg_scale_src,
|
171 |
cfg_scale_tar,
|
172 |
skip,
|
173 |
-
seed
|
|
|
174 |
],
|
175 |
outputs=[output_image],
|
176 |
)
|
|
|
152 |
src_prompt = gr.Textbox(lines=1, label="Source Prompt", interactive=True, placeholder="describe the original image")
|
153 |
steps = gr.Number(value=100, precision=0, label="Num Diffusion Steps", interactive=True)
|
154 |
cfg_scale_src = gr.Slider(minimum=1, maximum=15, value=3.5, label=f"Source Guidance Scale", interactive=True)
|
155 |
+
with gr.Column():
|
156 |
# reconstruction
|
157 |
skip = gr.Slider(minimum=0, maximum=40, value=36, precision=0, label="Skip Steps", interactive=True)
|
158 |
cfg_scale_tar = gr.Slider(minimum=7, maximum=18,value=15, label=f"Target Guidance Scale", interactive=True)
|
|
|
170 |
cfg_scale_src,
|
171 |
cfg_scale_tar,
|
172 |
skip,
|
173 |
+
seed,
|
174 |
+
randomize_seed
|
175 |
],
|
176 |
outputs=[output_image],
|
177 |
)
|