Spaces:
Restarting
on
CPU Upgrade
Restarting
on
CPU Upgrade
warning
Browse files
src/display/formatting.py
CHANGED
@@ -11,9 +11,9 @@ def model_hyperlink(link, model_name):
|
|
11 |
return f'<a target="_blank" href="{link}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model_name_a}</a>{model_name_b}'
|
12 |
|
13 |
|
14 |
-
def make_clickable_model(model_name):
|
15 |
link = f"https://huggingface.co/{model_name.split(',')[0]}"
|
16 |
-
return model_hyperlink(link,
|
17 |
|
18 |
|
19 |
def styled_error(error):
|
|
|
11 |
return f'<a target="_blank" href="{link}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model_name_a}</a>{model_name_b}'
|
12 |
|
13 |
|
14 |
+
def make_clickable_model(model_name, model_display_name):
|
15 |
link = f"https://huggingface.co/{model_name.split(',')[0]}"
|
16 |
+
return model_hyperlink(link, model_display_name)
|
17 |
|
18 |
|
19 |
def styled_error(error):
|
src/leaderboard/read_evals.py
CHANGED
@@ -266,7 +266,7 @@ class EvalResult:
|
|
266 |
|
267 |
try:
|
268 |
data_dict[AutoEvalColumn.model.name] = make_clickable_model(
|
269 |
-
self.full_model) if self.still_on_hub else self.full_model
|
270 |
except KeyError:
|
271 |
print(f"Could not find model")
|
272 |
|
|
|
266 |
|
267 |
try:
|
268 |
data_dict[AutoEvalColumn.model.name] = make_clickable_model(
|
269 |
+
self.full_model, self.model) if self.still_on_hub else self.full_model
|
270 |
except KeyError:
|
271 |
print(f"Could not find model")
|
272 |
|