ggcristian commited on
Commit
ff0c247
·
1 Parent(s): c797bf2

Refactor (& fix) Reasoning tag

Browse files
Files changed (1) hide show
  1. utils.py +7 -8
utils.py CHANGED
@@ -17,17 +17,16 @@ type_emoji = {
17
 
18
  def model_hyperlink(link, model_name, release, thinking=False):
19
  ret = f'<a target="_blank" href="{link}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model_name}</a>'
 
 
 
20
  if release == "V1":
21
- return ret
22
- elif thinking == False:
23
- return (
24
- ret
25
- + f' <span style="opacity: 0.7; font-variant: all-small-caps; font-weight: 600">new</span>'
26
- )
27
  else:
28
  return (
29
- ret
30
- + f' <span style="opacity: 0.7; font-variant: all-small-caps; font-weight: 600">new</span> <span style="opacity: 0.9; font-variant: all-small-caps; font-weight: 600; color: #5C6BC0">(reasoning)</span>'
 
31
  )
32
 
33
 
 
17
 
18
  def model_hyperlink(link, model_name, release, thinking=False):
19
  ret = f'<a target="_blank" href="{link}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model_name}</a>'
20
+ new_badge = f' <span style="opacity: 0.7; font-variant: all-small-caps; font-weight: 600">new</span>'
21
+ reasoning_badge = f' <span style="opacity: 0.9; font-variant: all-small-caps; font-weight: 600; color: #5C6BC0">(reasoning)</span>'
22
+
23
  if release == "V1":
24
+ return ret + reasoning_badge if thinking == "Reasoning" else ret
 
 
 
 
 
25
  else:
26
  return (
27
+ ret + new_badge + reasoning_badge
28
+ if thinking == "Reasoning"
29
+ else ret + new_badge
30
  )
31
 
32