DQLiu commited on
Commit
0a04f7c
1 Parent(s): c30b54b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -137,8 +137,8 @@ def push_to_hf(cache_dir, WiseModel_repo_name, hf_repo_id):
137
  def pull_from_hf(cache_dir, hf_repo_id):
138
  from huggingface_hub import HfApi
139
 
140
- # if not HF_TOKEN:
141
- # raise gr.Error("Please enter your HF_TOKEN")
142
  print("pull_from_hf start")
143
  api = HfApi(token=HF_TOKEN) # Token is not persisted on the machine.
144
  output = api.snapshot_download(
 
137
  def pull_from_hf(cache_dir, hf_repo_id):
138
  from huggingface_hub import HfApi
139
 
140
+ if not HF_TOKEN:
141
+ raise gr.Error("Please enter your HF_TOKEN")
142
  print("pull_from_hf start")
143
  api = HfApi(token=HF_TOKEN) # Token is not persisted on the machine.
144
  output = api.snapshot_download(