Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -185,7 +185,7 @@ def pipe_generate(img,p1,p2,motion,time,title):
|
|
185 |
num_inference_steps=step,
|
186 |
max_sequence_length=seq,
|
187 |
need_safetycheck=False,
|
188 |
-
generator=torch.Generator(device).manual_seed(random.random())
|
189 |
).images[0]
|
190 |
|
191 |
if time == 0.0:
|
|
|
185 |
num_inference_steps=step,
|
186 |
max_sequence_length=seq,
|
187 |
need_safetycheck=False,
|
188 |
+
generator=torch.Generator(device).manual_seed(int(str(random.random()).split(".")[1]))
|
189 |
).images[0]
|
190 |
|
191 |
if time == 0.0:
|