Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 =
|
|
|
|
|
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,
|