Spaces:
Running
Running
style disabled models in Leaderboard
Browse files
app.py
CHANGED
|
@@ -574,9 +574,14 @@ def get_leaderboard(reveal_prelim = False):
|
|
| 574 |
|
| 575 |
def make_link_to_space(model_name):
|
| 576 |
# create a anchor link if a HF space
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 577 |
if '/' in model_name:
|
| 578 |
-
style = 'color: var(--link-text-color);text-decoration: underline;text-decoration-style: dotted;'
|
| 579 |
return '🤗 <a style="' + style + '" href="'+ 'https://huggingface.co/spaces/' + model_name + '">' + model_name + '</a>'
|
|
|
|
| 580 |
# otherwise just return the model name
|
| 581 |
return model_name
|
| 582 |
def markdown_link_to_space(model_name):
|
|
|
|
| 574 |
|
| 575 |
def make_link_to_space(model_name):
|
| 576 |
# create a anchor link if a HF space
|
| 577 |
+
style = 'text-decoration: underline;text-decoration-style: dotted;'
|
| 578 |
+
if model_name in AVAILABLE_MODELS:
|
| 579 |
+
style += 'color: var(--link-text-color);'
|
| 580 |
+
else:
|
| 581 |
+
style += 'font-style: italic;'
|
| 582 |
if '/' in model_name:
|
|
|
|
| 583 |
return '🤗 <a style="' + style + '" href="'+ 'https://huggingface.co/spaces/' + model_name + '">' + model_name + '</a>'
|
| 584 |
+
|
| 585 |
# otherwise just return the model name
|
| 586 |
return model_name
|
| 587 |
def markdown_link_to_space(model_name):
|