CharlieAmalet commited on
Commit
78731ee
·
verified ·
1 Parent(s): b75265f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -18,8 +18,10 @@ import random
18
  from huggingface_hub import login, hf_hub_download
19
  import spaces
20
 
 
 
21
  try:
22
- hf_hub_download(repo_id="vdo/stable-video-diffusion-img2vid-xt-1-1", local_dir="./checkpoints", cache_dir="./checkpoints")
23
  except (Exception, BaseException) as error:
24
  print(error)
25
 
@@ -32,8 +34,6 @@ except (Exception, BaseException) as error:
32
 
33
  # pipe.save_pretrained("./checkpoints", variant="fp16")
34
 
35
- model_directory = './checkpoints'
36
-
37
  if not os.path.exists(model_directory):
38
  pipe = StableVideoDiffusionPipeline.from_pretrained(
39
  # "stabilityai/stable-video-diffusion-img2vid-xt-1-1",
 
18
  from huggingface_hub import login, hf_hub_download
19
  import spaces
20
 
21
+ model_directory = './checkpoints'
22
+
23
  try:
24
+ hf_hub_download(repo_id="vdo/stable-video-diffusion-img2vid-xt-1-1", filename="svd_xt_1_1.safetensors", local_dir=model_directory, cache_dir=model_directory)
25
  except (Exception, BaseException) as error:
26
  print(error)
27
 
 
34
 
35
  # pipe.save_pretrained("./checkpoints", variant="fp16")
36
 
 
 
37
  if not os.path.exists(model_directory):
38
  pipe = StableVideoDiffusionPipeline.from_pretrained(
39
  # "stabilityai/stable-video-diffusion-img2vid-xt-1-1",