Spaces:
Runtime error
Runtime error
Commit
·
d238af3
1
Parent(s):
48006fb
Fix link paths
Browse files
app.py
CHANGED
@@ -16,12 +16,12 @@ MAIN_METRIC_PER_TASK = {
|
|
16 |
}
|
17 |
|
18 |
|
19 |
-
def create_model_link(model_id, link=None, type=
|
20 |
|
21 |
if link is None:
|
22 |
type_url_part = ''
|
23 |
|
24 |
-
if type != '
|
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}"
|