liorgreenb commited on
Commit
1ff07b8
·
1 Parent(s): b405f8c

Fix link paths

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,9 +22,9 @@ def create_model_link(model_id, link=None, type=None):
22
  type_url_part = ''
23
 
24
  if type != 'repo':
25
- type_url_part = type
26
 
27
- link = f"https://huggingface.co/{type_url_part}/{model_id}"
28
 
29
 
30
  return (
 
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}"
28
 
29
 
30
  return (