hysts HF staff commited on
Commit
0a042a5
·
1 Parent(s): 52d55ed

Download model

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -14,7 +14,12 @@ subprocess.run(
14
  ), check=True
15
  )
16
 
 
17
  if __name__ == "__main__":
 
 
 
 
18
  import os
19
  import sys
20
  sys.path.append(os.curdir)
@@ -49,7 +54,7 @@ _DESCRIPTION = '''
49
 
50
  def launch():
51
  model_zoo.init_models()
52
-
53
  with gr.Blocks(
54
  title=_TITLE,
55
  # theme=gr.themes.Monochrome(),
@@ -61,6 +66,6 @@ def launch():
61
  create_3d_ui("wkl")
62
 
63
  demo.queue().launch(share=True)
64
-
65
  if __name__ == '__main__':
66
  fire.Fire(launch)
 
14
  ), check=True
15
  )
16
 
17
+
18
  if __name__ == "__main__":
19
+ from huggingface_hub import snapshot_download
20
+
21
+ snapshot_download("Wuvin/Unique3D", repo_type="model", local_dir="./ckpt")
22
+
23
  import os
24
  import sys
25
  sys.path.append(os.curdir)
 
54
 
55
  def launch():
56
  model_zoo.init_models()
57
+
58
  with gr.Blocks(
59
  title=_TITLE,
60
  # theme=gr.themes.Monochrome(),
 
66
  create_3d_ui("wkl")
67
 
68
  demo.queue().launch(share=True)
69
+
70
  if __name__ == '__main__':
71
  fire.Fire(launch)