mobinln commited on
Commit
d21f374
·
verified ·
1 Parent(s): c109793

fix bug in making thinking tokens italic

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ def respond(
45
  for message in completion:
46
  delta = message['choices'][0]['delta']
47
  if 'content' in delta:
48
- # response += delta['content']
49
  formatted_response = re.sub(r'<think>(.*?)</think>', r'*\1*', response)
50
  yield formatted_response
51
 
 
45
  for message in completion:
46
  delta = message['choices'][0]['delta']
47
  if 'content' in delta:
48
+ response += delta['content']
49
  formatted_response = re.sub(r'<think>(.*?)</think>', r'*\1*', response)
50
  yield formatted_response
51