fffiloni commited on
Commit
f261a00
·
verified ·
1 Parent(s): 3a757b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.cuda.amp.autocast(dtype=pipe.transformer.dtype), torch.no_grad():
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)