Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def respond(prompt, history):
|
|
43 |
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
|
44 |
print("Decoded response:", response)
|
45 |
# **去除 `<think>` 及其他無用內容**
|
46 |
-
response = response.replace("<think>", "").replace("</think>", "").strip()
|
47 |
# 返回回應
|
48 |
return response
|
49 |
|
|
|
43 |
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
|
44 |
print("Decoded response:", response)
|
45 |
# **去除 `<think>` 及其他無用內容**
|
46 |
+
response = response.replace("<think>", "**THINK**").replace("</think>", "**THINK**").strip()
|
47 |
# 返回回應
|
48 |
return response
|
49 |
|