liorgreenb commited on
Commit
d238af3
·
1 Parent(s): 48006fb

Fix link paths

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,12 +16,12 @@ MAIN_METRIC_PER_TASK = {
16
  }
17
 
18
 
19
- def create_model_link(model_id, link=None, type=None):
20
 
21
  if link is None:
22
  type_url_part = ''
23
 
24
- if type != 'repo':
25
  type_url_part = f"/{type}"
26
 
27
  link = f"https://huggingface.co{type_url_part}/{model_id}"
 
16
  }
17
 
18
 
19
+ def create_model_link(model_id, link=None, type='repos'):
20
 
21
  if link is None:
22
  type_url_part = ''
23
 
24
+ if type != 'repos' and not None:
25
  type_url_part = f"/{type}"
26
 
27
  link = f"https://huggingface.co{type_url_part}/{model_id}"