wwen1997 commited on
Commit
64a9e6c
1 Parent(s): a183402

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -26,13 +26,20 @@ import warnings
26
  print("gr file", gr.__file__)
27
 
28
  from huggingface_hub import hf_hub_download, snapshot_download
 
29
  os.makedirs("checkpoints", exist_ok=True)
 
30
  snapshot_download(
31
  "wwen1997/framer_512x320",
32
  local_dir="checkpoints/framer_512x320",
33
  token=os.environ["TOKEN"],
34
  )
35
 
 
 
 
 
 
36
 
37
 
38
  def get_args():
@@ -382,7 +389,7 @@ class Drag:
382
  # "xformers is not available. Make sure it is installed correctly")
383
 
384
  pipe = StableVideoDiffusionInterpControlPipeline.from_pretrained(
385
- "stabilityai/stable-video-diffusion-img2vid-xt",
386
  unet=unet,
387
  controlnet=controlnet,
388
  low_cpu_mem_usage=False,
 
26
  print("gr file", gr.__file__)
27
 
28
  from huggingface_hub import hf_hub_download, snapshot_download
29
+
30
  os.makedirs("checkpoints", exist_ok=True)
31
+
32
  snapshot_download(
33
  "wwen1997/framer_512x320",
34
  local_dir="checkpoints/framer_512x320",
35
  token=os.environ["TOKEN"],
36
  )
37
 
38
+ snapshot_download(
39
+ "stabilityai/stable-video-diffusion-img2vid-xt",
40
+ local_dir="checkpoints/stable-video-diffusion-img2vid-xt",
41
+ token=os.environ["TOKEN"],
42
+ )
43
 
44
 
45
  def get_args():
 
389
  # "xformers is not available. Make sure it is installed correctly")
390
 
391
  pipe = StableVideoDiffusionInterpControlPipeline.from_pretrained(
392
+ "checkpoints/stable-video-diffusion-img2vid-xt",
393
  unet=unet,
394
  controlnet=controlnet,
395
  low_cpu_mem_usage=False,