Update app.py
Browse files
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)
|