Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
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(
|