kairunwen commited on
Commit
013d4d7
1 Parent(s): ea57f0d
Files changed (1) hide show
  1. app_wrapper.py +2 -2
app_wrapper.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  import os
3
  # import spaces
4
 
5
- # token = os.getenv("HF_TOKEN")
6
 
7
  # gr.load("kairunwen/tmp", hf_token=token, src="spaces").launch()
8
 
@@ -14,6 +14,6 @@ import subprocess
14
  from huggingface_hub import HfApi
15
 
16
  api = HfApi()
17
- api.snapshot_download(repo_id="kairunwen/tmp", repo_type="space", local_dir=".")
18
  subprocess.run(shlex.split("pip install -r requirements.txt"))
19
  subprocess.run(shlex.split("python app.py"))
 
2
  import os
3
  # import spaces
4
 
5
+ hf_token = os.getenv("instantsplat_token")
6
 
7
  # gr.load("kairunwen/tmp", hf_token=token, src="spaces").launch()
8
 
 
14
  from huggingface_hub import HfApi
15
 
16
  api = HfApi()
17
+ api.snapshot_download(repo_id="kairunwen/tmp", repo_type="space", local_dir=".", token=hf_token)
18
  subprocess.run(shlex.split("pip install -r requirements.txt"))
19
  subprocess.run(shlex.split("python app.py"))