Spaces:
Running
on
A10G
Running
on
A10G
Linoy Tsaban
commited on
Commit
•
9156300
1
Parent(s):
017df60
Update app.py
Browse files
app.py
CHANGED
@@ -196,6 +196,12 @@ def edit(input_image,
|
|
196 |
use_ddpm=True, wts=wts.value, zs=zs.value[skip:], **editing_args)
|
197 |
return sega_out.images[0]
|
198 |
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
########
|
200 |
# demo #
|
201 |
########
|
|
|
196 |
use_ddpm=True, wts=wts.value, zs=zs.value[skip:], **editing_args)
|
197 |
return sega_out.images[0]
|
198 |
|
199 |
+
|
200 |
+
def randomize_seed_fn(seed, randomize_seed):
|
201 |
+
if randomize_seed:
|
202 |
+
seed = random.randint(0, MAX_SEED)
|
203 |
+
return seed
|
204 |
+
|
205 |
########
|
206 |
# demo #
|
207 |
########
|