Tuchuanhuhuhu commited on
Commit
f9ea9d8
1 Parent(s): 27f306f

改动:去除csv文件的第一行

Browse files
Files changed (2) hide show
  1. ChuanhuChatbot.py +1 -0
  2. README.md +2 -0
ChuanhuChatbot.py CHANGED
@@ -198,6 +198,7 @@ def load_template(filename):
198
  with open(os.path.join(TEMPLATES_DIR, filename), "r") as csvfile:
199
  reader = csv.reader(csvfile)
200
  lines = list(reader)
 
201
  return {row[0]:row[1] for row in lines}, gr.Dropdown.update(choices=[row[0] for row in lines])
202
 
203
  def get_template_names(plain=False):
 
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:]
202
  return {row[0]:row[1] for row in lines}, gr.Dropdown.update(choices=[row[0] for row in lines])
203
 
204
  def get_template_names(plain=False):
README.md CHANGED
@@ -18,6 +18,8 @@
18
  - 精简了UI
19
  - 像官方ChatGPT那样实时回复
20
  - 改进的保存/加载功能
 
 
21
 
22
  ## 功能
23
  - [x] 像官方客户端那样支持实时显示回答!
 
18
  - 精简了UI
19
  - 像官方ChatGPT那样实时回复
20
  - 改进的保存/加载功能
21
+ - 从Prompt模板中选择预设
22
+
23
 
24
  ## 功能
25
  - [x] 像官方客户端那样支持实时显示回答!