Spaces:
Sleeping
Sleeping
Tuchuanhuhuhu
commited on
Commit
·
dd405b6
1
Parent(s):
54e7067
修复符号*显示
Browse files- ChuanhuChatbot.py +8 -0
ChuanhuChatbot.py
CHANGED
@@ -61,6 +61,14 @@ def parse_text(text):
|
|
61 |
line = line.replace("<", "<")
|
62 |
line = line.replace(">", ">")
|
63 |
line = line.replace(" ", " ")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
lines[i] = "<br>"+line
|
65 |
text = "".join(lines)
|
66 |
return text
|
|
|
61 |
line = line.replace("<", "<")
|
62 |
line = line.replace(">", ">")
|
63 |
line = line.replace(" ", " ")
|
64 |
+
line = line.replace("*", "*")
|
65 |
+
line = line.replace("_", "_")
|
66 |
+
line = line.replace("{", "{")
|
67 |
+
line = line.replace("}", "}")
|
68 |
+
line = line.replace("[", "[")
|
69 |
+
line = line.replace("]", "]")
|
70 |
+
line = line.replace("|", "|")
|
71 |
+
line = line.replace("-", "-")
|
72 |
lines[i] = "<br>"+line
|
73 |
text = "".join(lines)
|
74 |
return text
|