Spaces:
Runtime error
Runtime error
Commit
•
a93df7e
1
Parent(s):
b7cfa06
Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ def main():
|
|
69 |
ori_image = pipe(prompt, generator=generator, guidance_scale=cfg_scale, sag_scale=0.75).images[0]
|
70 |
generator = torch.manual_seed(seed)
|
71 |
sag_image = pipe(prompt, generator=generator, guidance_scale=cfg_scale, sag_scale=0.75).images[0]
|
72 |
-
return [
|
73 |
|
74 |
def reset():
|
75 |
return [0, "Randomize Seed", 1371, 5.0, 0.75, None, None]
|
@@ -122,7 +122,7 @@ def main():
|
|
122 |
cfg_scale,
|
123 |
sag_scale,
|
124 |
],
|
125 |
-
outputs=[
|
126 |
cache_examples=False,
|
127 |
)
|
128 |
|
@@ -138,7 +138,7 @@ def main():
|
|
138 |
cfg_scale,
|
139 |
sag_scale,
|
140 |
],
|
141 |
-
outputs=[
|
142 |
)
|
143 |
reset_button.click(
|
144 |
fn=reset,
|
|
|
69 |
ori_image = pipe(prompt, generator=generator, guidance_scale=cfg_scale, sag_scale=0.75).images[0]
|
70 |
generator = torch.manual_seed(seed)
|
71 |
sag_image = pipe(prompt, generator=generator, guidance_scale=cfg_scale, sag_scale=0.75).images[0]
|
72 |
+
return [ori_image, sag_image]
|
73 |
|
74 |
def reset():
|
75 |
return [0, "Randomize Seed", 1371, 5.0, 0.75, None, None]
|
|
|
122 |
cfg_scale,
|
123 |
sag_scale,
|
124 |
],
|
125 |
+
outputs=[ori_image, sag_image],
|
126 |
cache_examples=False,
|
127 |
)
|
128 |
|
|
|
138 |
cfg_scale,
|
139 |
sag_scale,
|
140 |
],
|
141 |
+
outputs=[ori_image, sag_image],
|
142 |
)
|
143 |
reset_button.click(
|
144 |
fn=reset,
|