kairunwen commited on
Commit
34b3cc0
·
1 Parent(s): 6f8ebff
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", hf_token=token, 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
+ # token = os.getenv("HF_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=".")
18
  subprocess.run(shlex.split("pip install -r requirements.txt"))
19
  subprocess.run(shlex.split("python app.py"))