Spaces:
Runtime error
Runtime error
Muennighoff
commited on
Commit
•
a51beac
1
Parent(s):
c00e4c9
Fix links
Browse files
app.py
CHANGED
@@ -124,12 +124,11 @@ TASK_TO_METRIC = {
|
|
124 |
}
|
125 |
|
126 |
def make_clickable_model(model_name, link=None):
|
127 |
-
# Remove user from model name
|
128 |
-
model_name = model_name.split("/")[-1]
|
129 |
if link is None:
|
130 |
link = "https://huggingface.co/" + model_name
|
|
|
131 |
return (
|
132 |
-
f'<a target="_blank" style="text-decoration: underline" href="{link}">{model_name}</a>'
|
133 |
)
|
134 |
|
135 |
# Models without metadata, thus we cannot fetch their results naturally
|
|
|
124 |
}
|
125 |
|
126 |
def make_clickable_model(model_name, link=None):
|
|
|
|
|
127 |
if link is None:
|
128 |
link = "https://huggingface.co/" + model_name
|
129 |
+
# Remove user from model name
|
130 |
return (
|
131 |
+
f'<a target="_blank" style="text-decoration: underline" href="{link}">{model_name.split("/")[-1]}</a>'
|
132 |
)
|
133 |
|
134 |
# Models without metadata, thus we cannot fetch their results naturally
|