Spaces:
Sleeping
Sleeping
Tuchuanhuhuhu
commited on
Commit
·
11764da
1
Parent(s):
80af8ca
修复了错误报告换行过多的问题
Browse files- ChuanhuChatbot.py +2 -1
ChuanhuChatbot.py
CHANGED
@@ -56,7 +56,8 @@ def parse_text(text):
|
|
56 |
line = line.replace("<", "<")
|
57 |
line = line.replace(">", ">")
|
58 |
line = line.replace(" ", " ")
|
59 |
-
|
|
|
60 |
return "".join(lines)
|
61 |
|
62 |
def predict(inputs, top_p, temperature, openai_api_key, chatbot=[], history=[], system_prompt=initial_prompt, retry=False, summary=False): # repetition_penalty, top_k
|
|
|
56 |
line = line.replace("<", "<")
|
57 |
line = line.replace(">", ">")
|
58 |
line = line.replace(" ", " ")
|
59 |
+
if not line.startswith("<br/>"):
|
60 |
+
lines[i] = '<br/>'+line
|
61 |
return "".join(lines)
|
62 |
|
63 |
def predict(inputs, top_p, temperature, openai_api_key, chatbot=[], history=[], system_prompt=initial_prompt, retry=False, summary=False): # repetition_penalty, top_k
|