Spaces:
AIR-Bench
/
Running on CPU Upgrade

hanhainebula commited on
Commit
933b575
1 Parent(s): eb0f9c5

fix a bug for anonymous retrieval model submisson

Browse files
Files changed (1) hide show
  1. src/display/formatting.py +1 -1
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