Spaces:
Running
Running
wissamantoun
commited on
Commit
·
a49ffd4
1
Parent(s):
5ede0fb
fixes
Browse files- backend/utils.py +6 -6
backend/utils.py
CHANGED
@@ -14,20 +14,20 @@ def download_models(models):
|
|
14 |
curr_dir = f"{model}/train_{i}/best_model/"
|
15 |
os.makedirs(curr_dir)
|
16 |
os.system(
|
17 |
-
f"wget https://huggingface.co/researchaccount/{model}/resolve/main/train_{i}/best_model/config.json -P {curr_dir}
|
18 |
)
|
19 |
os.system(
|
20 |
-
f"wget https://huggingface.co/researchaccount/{model}/resolve/main/train_{i}/best_model/pytorch_model.bin -P {curr_dir}
|
21 |
)
|
22 |
os.system(
|
23 |
-
f"wget https://huggingface.co/researchaccount/{model}/resolve/main/train_{i}/best_model/special_tokens_map.json -P {curr_dir}
|
24 |
)
|
25 |
os.system(
|
26 |
-
f"wget https://huggingface.co/researchaccount/{model}/resolve/main/train_{i}/best_model/tokenizer_config.json -P {curr_dir}
|
27 |
)
|
28 |
os.system(
|
29 |
-
f"wget https://huggingface.co/researchaccount/{model}/resolve/main/train_{i}/best_model/training_args.bin -P {curr_dir}
|
30 |
)
|
31 |
os.system(
|
32 |
-
f"wget https://huggingface.co/researchaccount/{model}/resolve/main/train_{i}/best_model/vocab.txt -P {curr_dir}
|
33 |
)
|
|
|
14 |
curr_dir = f"{model}/train_{i}/best_model/"
|
15 |
os.makedirs(curr_dir)
|
16 |
os.system(
|
17 |
+
f"wget -q https://huggingface.co/researchaccount/{model}/resolve/main/train_{i}/best_model/config.json -P {curr_dir}"
|
18 |
)
|
19 |
os.system(
|
20 |
+
f"wget -q https://huggingface.co/researchaccount/{model}/resolve/main/train_{i}/best_model/pytorch_model.bin -P {curr_dir}"
|
21 |
)
|
22 |
os.system(
|
23 |
+
f"wget -q https://huggingface.co/researchaccount/{model}/resolve/main/train_{i}/best_model/special_tokens_map.json -P {curr_dir}"
|
24 |
)
|
25 |
os.system(
|
26 |
+
f"wget -q https://huggingface.co/researchaccount/{model}/resolve/main/train_{i}/best_model/tokenizer_config.json -P {curr_dir}"
|
27 |
)
|
28 |
os.system(
|
29 |
+
f"wget -q https://huggingface.co/researchaccount/{model}/resolve/main/train_{i}/best_model/training_args.bin -P {curr_dir}"
|
30 |
)
|
31 |
os.system(
|
32 |
+
f"wget -q https://huggingface.co/researchaccount/{model}/resolve/main/train_{i}/best_model/vocab.txt -P {curr_dir}"
|
33 |
)
|