Spaces:
Sleeping
Sleeping
Tuchuanhuhuhu
commited on
Commit
·
9fc3541
1
Parent(s):
9770ff4
改动:csv文件加载默认使用utf8
Browse files- ChuanhuChatbot.py +1 -1
ChuanhuChatbot.py
CHANGED
@@ -195,7 +195,7 @@ def get_history_names(plain=False):
|
|
195 |
|
196 |
def load_template(filename):
|
197 |
lines = []
|
198 |
-
with open(os.path.join(TEMPLATES_DIR, filename), "r") as csvfile:
|
199 |
reader = csv.reader(csvfile)
|
200 |
lines = list(reader)
|
201 |
lines = lines[1:]
|
|
|
195 |
|
196 |
def load_template(filename):
|
197 |
lines = []
|
198 |
+
with open(os.path.join(TEMPLATES_DIR, filename), "r", encoding="utf8") as csvfile:
|
199 |
reader = csv.reader(csvfile)
|
200 |
lines = list(reader)
|
201 |
lines = lines[1:]
|