add use_auth_token
Browse files
app.py
CHANGED
@@ -246,8 +246,8 @@ list_model = []
|
|
246 |
list_config = []
|
247 |
|
248 |
for model_name in list_model_name:
|
249 |
-
model_file = hf_hub_download(model_path, f"{model_name}/{model_files[model_name]}")
|
250 |
-
config_file = hf_hub_download(model_path, f"{model_name}/config.json")
|
251 |
|
252 |
with open(config_file) as f:
|
253 |
data = f.read()
|
|
|
246 |
list_config = []
|
247 |
|
248 |
for model_name in list_model_name:
|
249 |
+
model_file = hf_hub_download(model_path, f"{model_name}/{model_files[model_name]}", use_auth_token=os.environ['TOKEN'])
|
250 |
+
config_file = hf_hub_download(model_path, f"{model_name}/config.json", use_auth_token=os.environ['TOKEN'])
|
251 |
|
252 |
with open(config_file) as f:
|
253 |
data = f.read()
|