Spaces:
Sleeping
Sleeping
Tuchuanhuhuhu
commited on
Commit
•
8cc9e95
1
Parent(s):
7dafee0
修复引号问题
Browse files- ChuanhuChatbot.py +3 -3
ChuanhuChatbot.py
CHANGED
@@ -8,7 +8,7 @@ import requests
|
|
8 |
# import markdown
|
9 |
import csv
|
10 |
|
11 |
-
my_api_key = "" # 在这里输入你的 API 密钥
|
12 |
HIDE_MY_KEY = False # 如果你想在UI中隐藏你的 API 密钥,将此值设置为 True
|
13 |
|
14 |
initial_prompt = "You are a helpful assistant."
|
@@ -55,10 +55,10 @@ def parse_text(text):
|
|
55 |
else:
|
56 |
if i > 0:
|
57 |
if count % 2 == 1:
|
58 |
-
line = line.replace("
|
59 |
-
line = line.replace("`", "`")
|
60 |
line = line.replace("\"", "`\"`")
|
61 |
line = line.replace("\'", "`\'`")
|
|
|
62 |
line = line.replace("<", "<")
|
63 |
line = line.replace(">", ">")
|
64 |
line = line.replace(" ", " ")
|
|
|
8 |
# import markdown
|
9 |
import csv
|
10 |
|
11 |
+
my_api_key = "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" # 在这里输入你的 API 密钥
|
12 |
HIDE_MY_KEY = False # 如果你想在UI中隐藏你的 API 密钥,将此值设置为 True
|
13 |
|
14 |
initial_prompt = "You are a helpful assistant."
|
|
|
55 |
else:
|
56 |
if i > 0:
|
57 |
if count % 2 == 1:
|
58 |
+
line = line.replace("`", "`")
|
|
|
59 |
line = line.replace("\"", "`\"`")
|
60 |
line = line.replace("\'", "`\'`")
|
61 |
+
# line = line.replace("&", "&")
|
62 |
line = line.replace("<", "<")
|
63 |
line = line.replace(">", ">")
|
64 |
line = line.replace(" ", " ")
|