Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ def generate_video(
|
|
104 |
if image is not None:
|
105 |
kwargs["image"] = image.convert("RGB")
|
106 |
|
107 |
-
with torch.
|
108 |
video_frames = pipe(**kwargs)[0]
|
109 |
|
110 |
os.makedirs("gradio_videos", exist_ok=True)
|
|
|
104 |
if image is not None:
|
105 |
kwargs["image"] = image.convert("RGB")
|
106 |
|
107 |
+
with torch.amp.autocast("cuda", dtype=pipe.transformer.dtype), torch.no_grad():
|
108 |
video_frames = pipe(**kwargs)[0]
|
109 |
|
110 |
os.makedirs("gradio_videos", exist_ok=True)
|