wwen1997 commited on
Commit
7fd4aab
1 Parent(s): 78e77d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -24,15 +24,16 @@ from gradio_demo.utils_drag import *
24
  import warnings
25
  print("gr file", gr.__file__)
26
 
27
- from huggingface_hub import hf_hub_download
28
  os.makedirs("checkpoints", exist_ok=True)
29
- hf_hub_download(
30
  "wwen1997/framer_512x320",
31
  local_dir="checkpoints/framer_512x320",
32
  token=os.environ["TOKEN"],
33
  )
34
 
35
 
 
36
  def get_args():
37
  import argparse
38
  parser = argparse.ArgumentParser()
 
24
  import warnings
25
  print("gr file", gr.__file__)
26
 
27
+ from huggingface_hub import hf_hub_download, snapshot_download
28
  os.makedirs("checkpoints", exist_ok=True)
29
+ snapshot_download(
30
  "wwen1997/framer_512x320",
31
  local_dir="checkpoints/framer_512x320",
32
  token=os.environ["TOKEN"],
33
  )
34
 
35
 
36
+
37
  def get_args():
38
  import argparse
39
  parser = argparse.ArgumentParser()