Roman Solomatin
commited on
upd function name
Browse files- refresh.py +2 -2
refresh.py
CHANGED
|
@@ -131,7 +131,7 @@ def make_clickable_model(model_name: str, link: None | str = None) -> str:
|
|
| 131 |
return f'<a target="_blank" style="text-decoration: underline" href="{link}">{model_name.split("/")[-1]}</a>'
|
| 132 |
|
| 133 |
|
| 134 |
-
def
|
| 135 |
if not (examples["hf_subset"]) or (examples["hf_subset"] == "default"):
|
| 136 |
examples["mteb_dataset_name_with_lang"] = examples["mteb_dataset_name"]
|
| 137 |
else:
|
|
@@ -265,7 +265,7 @@ def get_external_model_results():
|
|
| 265 |
print(f"Can't fined model {model} in results repository. Exception: {e}")
|
| 266 |
continue
|
| 267 |
|
| 268 |
-
ds = ds.map(
|
| 269 |
ds = ds.map(add_task)
|
| 270 |
base_dict = {
|
| 271 |
"Model": make_clickable_model(
|
|
|
|
| 131 |
return f'<a target="_blank" style="text-decoration: underline" href="{link}">{model_name.split("/")[-1]}</a>'
|
| 132 |
|
| 133 |
|
| 134 |
+
def add_subset(examples):
|
| 135 |
if not (examples["hf_subset"]) or (examples["hf_subset"] == "default"):
|
| 136 |
examples["mteb_dataset_name_with_lang"] = examples["mteb_dataset_name"]
|
| 137 |
else:
|
|
|
|
| 265 |
print(f"Can't fined model {model} in results repository. Exception: {e}")
|
| 266 |
continue
|
| 267 |
|
| 268 |
+
ds = ds.map(add_subset)
|
| 269 |
ds = ds.map(add_task)
|
| 270 |
base_dict = {
|
| 271 |
"Model": make_clickable_model(
|