natolambert fbenzing commited on
Commit
b146dec
1 Parent(s): 4a1518a

Update hyperlinks for google model(s) (#5)

Browse files

- Update hyperlinks for google model(s) (cbae3e3973b68a310747154569763807082a7082)


Co-authored-by: Frederik Benzing <fbenzing@users.noreply.huggingface.co>

Files changed (1) hide show
  1. src/utils.py +2 -0
src/utils.py CHANGED
@@ -15,6 +15,8 @@ def model_hyperlink(link, model_name):
15
  return f'<a target="_blank" href="https://huggingface.co/openai" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model_name}</a>'
16
  elif "Anthropic" == model_name.split("/")[0]:
17
  return f'<a target="_blank" href="https://huggingface.co/Anthropic" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model_name}</a>'
 
 
18
  return f'<a target="_blank" href="{link}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model_name}</a>'
19
 
20
  def undo_hyperlink(html_string):
 
15
  return f'<a target="_blank" href="https://huggingface.co/openai" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model_name}</a>'
16
  elif "Anthropic" == model_name.split("/")[0]:
17
  return f'<a target="_blank" href="https://huggingface.co/Anthropic" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model_name}</a>'
18
+ elif "google" == model_name.split("/")[0]:
19
+ return f'<a target="_blank" href="https://huggingface.co/google" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model_name}</a>'
20
  return f'<a target="_blank" href="{link}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model_name}</a>'
21
 
22
  def undo_hyperlink(html_string):