Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update src/submission/submit.py
Browse files- src/submission/submit.py +1 -0
src/submission/submit.py
CHANGED
|
@@ -152,6 +152,7 @@ def add_new_eval(
|
|
| 152 |
rev_name = revision
|
| 153 |
if len(rev_name) > 12:
|
| 154 |
rev_name = rev_name[:7]
|
|
|
|
| 155 |
out_path = f"{OUT_DIR}/{model_path}_eval_request_{rev_name}_{private}_{precision}_{weight_type}.json"
|
| 156 |
|
| 157 |
with open(out_path, "w", encoding="utf-8") as f:
|
|
|
|
| 152 |
rev_name = revision
|
| 153 |
if len(rev_name) > 12:
|
| 154 |
rev_name = rev_name[:7]
|
| 155 |
+
rev_name = rev_name.replace('/', '-').replace('\\', '-')
|
| 156 |
out_path = f"{OUT_DIR}/{model_path}_eval_request_{rev_name}_{private}_{precision}_{weight_type}.json"
|
| 157 |
|
| 158 |
with open(out_path, "w", encoding="utf-8") as f:
|