Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix a bug for anonymous retrieval model submisson
Browse files
src/display/formatting.py
CHANGED
@@ -4,7 +4,7 @@ def model_hyperlink(link, model_name):
|
|
4 |
|
5 |
def make_clickable_model(model_name: str, model_link: str):
|
6 |
# link = f"https://huggingface.co/{model_name}"
|
7 |
-
if not model_link.startswith("https://"):
|
8 |
return model_name
|
9 |
return model_hyperlink(model_link, model_name)
|
10 |
|
|
|
4 |
|
5 |
def make_clickable_model(model_name: str, model_link: str):
|
6 |
# link = f"https://huggingface.co/{model_name}"
|
7 |
+
if not model_link or not model_link.startswith("https://"):
|
8 |
return model_name
|
9 |
return model_hyperlink(model_link, model_name)
|
10 |
|