jonluca commited on
Commit
c4d33cd
Β·
verified Β·
1 Parent(s): 942edfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -89,7 +89,9 @@ def generate_video_gpu(
89
  width, height = int(width), int(height)
90
  negative_prompt = "" # not applicable in the inference
91
  print("Predicting video...")
92
- generator = torch.manual_seed(seed)
 
 
93
  frames: List[PIL.Image.Image] = model(
94
  prompt=prompt,
95
  height=height,
 
89
  width, height = int(width), int(height)
90
  negative_prompt = "" # not applicable in the inference
91
  print("Predicting video...")
92
+ generator = None
93
+ if seed is not None:
94
+ generator = torch.manual_seed(seed)
95
  frames: List[PIL.Image.Image] = model(
96
  prompt=prompt,
97
  height=height,