Spaces:
Runtime error
Runtime error
Linoy Tsaban
commited on
Commit
·
19aee39
1
Parent(s):
1437a47
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,7 +92,7 @@ For faster inference without waiting in queue, you may duplicate the space and u
|
|
| 92 |
<a href="https://huggingface.co/spaces/LinoyTsaban/ddpm_sega?duplicate=true">
|
| 93 |
<img style="margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>
|
| 94 |
<p/>"""
|
| 95 |
-
with gr.Blocks() as demo:
|
| 96 |
|
| 97 |
def reset_latents():
|
| 98 |
wt = gr.State(value=None)
|
|
@@ -160,27 +160,6 @@ with gr.Blocks() as demo:
|
|
| 160 |
cfg_scale_tar = gr.Slider(minimum=7, maximum=18,value=15, label=f"Target Guidance Scale", interactive=True)
|
| 161 |
seed = gr.Number(value=0, precision=0, label="Seed", interactive=True)
|
| 162 |
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
# gr.Markdown(help_text)
|
| 166 |
-
|
| 167 |
-
# invert_button.click(
|
| 168 |
-
# fn=edit,
|
| 169 |
-
# inputs=[input_image,
|
| 170 |
-
# src_prompt,
|
| 171 |
-
# src_prompt,
|
| 172 |
-
# steps,
|
| 173 |
-
# cfg_scale_src,
|
| 174 |
-
# cfg_scale_tar,
|
| 175 |
-
# skip,
|
| 176 |
-
# seed,
|
| 177 |
-
# left,
|
| 178 |
-
# right,
|
| 179 |
-
# top,
|
| 180 |
-
# bottom
|
| 181 |
-
# ],
|
| 182 |
-
# outputs = [inverted_image],
|
| 183 |
-
# )
|
| 184 |
|
| 185 |
edit_button.click(
|
| 186 |
fn=edit,
|
|
|
|
| 92 |
<a href="https://huggingface.co/spaces/LinoyTsaban/ddpm_sega?duplicate=true">
|
| 93 |
<img style="margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>
|
| 94 |
<p/>"""
|
| 95 |
+
with gr.Blocks(css='style.css') as demo:
|
| 96 |
|
| 97 |
def reset_latents():
|
| 98 |
wt = gr.State(value=None)
|
|
|
|
| 160 |
cfg_scale_tar = gr.Slider(minimum=7, maximum=18,value=15, label=f"Target Guidance Scale", interactive=True)
|
| 161 |
seed = gr.Number(value=0, precision=0, label="Seed", interactive=True)
|
| 162 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 163 |
|
| 164 |
edit_button.click(
|
| 165 |
fn=edit,
|