Aratako commited on
Commit
9cadeb0
·
verified ·
1 Parent(s): 4a22f57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -97,10 +97,10 @@ def chat_llama3_8b(message: str,
97
 
98
  outputs = []
99
  for text in streamer:
100
- if "<think>" in text:
101
- text = text.replace("<think>", "").strip()
102
- if "</think>" in text:
103
- text = text.replace("</think>", "").strip()
104
  outputs.append(text)
105
  print("".join(outputs))
106
  yield "".join(outputs)
 
97
 
98
  outputs = []
99
  for text in streamer:
100
+ # if "<think>" in text:
101
+ # text = text.replace("<think>", "").strip()
102
+ # if "</think>" in text:
103
+ # text = text.replace("</think>", "").strip()
104
  outputs.append(text)
105
  print("".join(outputs))
106
  yield "".join(outputs)