Yaron Koresh commited on
Commit
3aaecd5
·
verified ·
1 Parent(s): 53d4500

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: