fix url show bugs
Browse files
app.py
CHANGED
|
@@ -49,7 +49,8 @@ def map_model_name(model_id):
|
|
| 49 |
|
| 50 |
# 定义函数,将模型名称转换为带有链接的 HTML 格式
|
| 51 |
def model_hyperlink(link, model_name):
|
| 52 |
-
return f'<a target="_blank" href="{link}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model_name}</a>'
|
|
|
|
| 53 |
|
| 54 |
def make_clickable_model(model_name):
|
| 55 |
link = f"https://huggingface.co/{model_name}"
|
|
|
|
| 49 |
|
| 50 |
# 定义函数,将模型名称转换为带有链接的 HTML 格式
|
| 51 |
def model_hyperlink(link, model_name):
|
| 52 |
+
# return f'<a target="_blank" href="{link}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model_name}</a>'
|
| 53 |
+
return f"[{model_name}]({link})"
|
| 54 |
|
| 55 |
def make_clickable_model(model_name):
|
| 56 |
link = f"https://huggingface.co/{model_name}"
|