AlekseyCalvin commited on
Commit
2fb5a94
·
verified ·
1 Parent(s): 3885a67

Update app_fast.py

Browse files
Files changed (1) hide show
  1. app_fast.py +4 -0
app_fast.py CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  import spaces
2
  import torch
3
  from diffusers import AutoencoderKLWan, WanPipeline, WanImageToVideoPipeline, UniPCMultistepScheduler
 
1
+ import os
2
+ os.system('pip install --upgrade --pre --extra-index-url https://download.pytorch.org/whl/nightly/cu126 "torch<2.9" spaces')
3
+ os.system('sudo modprobe -r nvidia_uvm && sudo modprobe nvidia_uvm" spaces')
4
+
5
  import spaces
6
  import torch
7
  from diffusers import AutoencoderKLWan, WanPipeline, WanImageToVideoPipeline, UniPCMultistepScheduler