3v324v23 commited on
Commit
4dad114
1 Parent(s): f8d565c

紧急bug修复

Browse files
crazy_functions/下载arxiv论文翻译摘要.py CHANGED
@@ -181,7 +181,7 @@ def 下载arxiv论文并翻译摘要(txt, llm_kwargs, plugin_kwargs, chatbot, hi
181
  sys_prompt="Your job is to collect information from materials and translate to Chinese。",
182
  )
183
 
184
- # gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, llm_kwargs, plugin_kwargs, history=[]) # 带超时倒计时
185
  chatbot[-1] = (i_say_show_user, gpt_say)
186
  history.append(i_say_show_user); history.append(gpt_say)
187
  yield from update_ui(chatbot=chatbot, history=chatbot, msg=msg) # 刷新界面
 
181
  sys_prompt="Your job is to collect information from materials and translate to Chinese。",
182
  )
183
 
184
+ # gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, llm_kwargs, history=[]) # 带超时倒计时
185
  chatbot[-1] = (i_say_show_user, gpt_say)
186
  history.append(i_say_show_user); history.append(gpt_say)
187
  yield from update_ui(chatbot=chatbot, history=chatbot, msg=msg) # 刷新界面
crazy_functions/总结word文档.py CHANGED
@@ -40,7 +40,7 @@ def 解析docx(file_manifest, project_folder, llm_kwargs, plugin_kwargs, chatbot
40
  if not fast_debug:
41
  msg = '正常'
42
  # ** gpt request **
43
- gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, llm_kwargs, plugin_kwargs, history=[]) # 带超时倒计时
44
  chatbot[-1] = (i_say_show_user, gpt_say)
45
  history.append(i_say_show_user);
46
  history.append(gpt_say)
 
40
  if not fast_debug:
41
  msg = '正常'
42
  # ** gpt request **
43
+ gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, llm_kwargs, history=[]) # 带超时倒计时
44
  chatbot[-1] = (i_say_show_user, gpt_say)
45
  history.append(i_say_show_user);
46
  history.append(gpt_say)
crazy_functions/批量总结PDF文档.py CHANGED
@@ -77,7 +77,7 @@ def 解析PDF(file_manifest, project_folder, llm_kwargs, plugin_kwargs, chatbot,
77
  if not fast_debug:
78
  msg = '正常'
79
  # ** gpt request **
80
- gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, llm_kwargs, plugin_kwargs, history=[]) # 带超时倒计时
81
 
82
  chatbot[-1] = (i_say_show_user, gpt_say)
83
  history.append(i_say_show_user); history.append(gpt_say)
 
77
  if not fast_debug:
78
  msg = '正常'
79
  # ** gpt request **
80
+ gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, llm_kwargs, history=[]) # 带超时倒计时
81
 
82
  chatbot[-1] = (i_say_show_user, gpt_say)
83
  history.append(i_say_show_user); history.append(gpt_say)
crazy_functions/批量总结PDF文档pdfminer.py CHANGED
@@ -82,7 +82,7 @@ def 解析Paper(file_manifest, project_folder, llm_kwargs, plugin_kwargs, chatbo
82
  if not fast_debug:
83
  msg = '正常'
84
  # ** gpt request **
85
- gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, llm_kwargs, plugin_kwargs, history=[]) # 带超时倒计时
86
 
87
  chatbot[-1] = (i_say_show_user, gpt_say)
88
  history.append(i_say_show_user); history.append(gpt_say)
 
82
  if not fast_debug:
83
  msg = '正常'
84
  # ** gpt request **
85
+ gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, llm_kwargs, history=[]) # 带超时倒计时
86
 
87
  chatbot[-1] = (i_say_show_user, gpt_say)
88
  history.append(i_say_show_user); history.append(gpt_say)
crazy_functions/理解PDF文档内容.py CHANGED
@@ -81,11 +81,11 @@ def 解析PDF(file_name, llm_kwargs, plugin_kwargs, chatbot, history, system_pro
81
  i_say = f'你只需要回答“接受完成”。文章内容第{i+1}/{split_group}部分是 ```{file_content[i*split_number:(i+1)*split_number]}```'
82
  i_say_show_user = f'当前发送{i+1}/{split_group}部分'
83
  chatbot.append((i_say_show_user, "[Local Message] waiting gpt response."))
84
- gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, llm_kwargs, plugin_kwargs, history=[]) # 带超时倒计时
85
  while "完成" not in gpt_say:
86
  i_say = f'你只需要回答“接受完成”。文章内容第{i+1}/{split_group}部分是 ```{file_content[i*split_number:(i+1)*split_number]}```'
87
  i_say_show_user = f'出现error,重新发送{i+1}/{split_group}部分'
88
- gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, llm_kwargs, plugin_kwargs, history=[]) # 带超时倒计时
89
  time.sleep(1)
90
  chatbot[-1] = (i_say_show_user, gpt_say)
91
  history.append(i_say_show_user); history.append(gpt_say)
 
81
  i_say = f'你只需要回答“接受完成”。文章内容第{i+1}/{split_group}部分是 ```{file_content[i*split_number:(i+1)*split_number]}```'
82
  i_say_show_user = f'当前发送{i+1}/{split_group}部分'
83
  chatbot.append((i_say_show_user, "[Local Message] waiting gpt response."))
84
+ gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, llm_kwargs, history=[]) # 带超时倒计时
85
  while "完成" not in gpt_say:
86
  i_say = f'你只需要回答“接受完成”。文章内容第{i+1}/{split_group}部分是 ```{file_content[i*split_number:(i+1)*split_number]}```'
87
  i_say_show_user = f'出现error,重新发送{i+1}/{split_group}部分'
88
+ gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, llm_kwargs, history=[]) # 带超时倒计时
89
  time.sleep(1)
90
  chatbot[-1] = (i_say_show_user, gpt_say)
91
  history.append(i_say_show_user); history.append(gpt_say)
crazy_functions/生成函数注释.py CHANGED
@@ -18,7 +18,7 @@ def 生成函数注释(file_manifest, project_folder, llm_kwargs, plugin_kwargs,
18
  if not fast_debug:
19
  msg = '正常'
20
  # ** gpt request **
21
- gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, llm_kwargs, plugin_kwargs, history=[]) # 带超时倒计时
22
 
23
  chatbot[-1] = (i_say_show_user, gpt_say)
24
  history.append(i_say_show_user); history.append(gpt_say)
 
18
  if not fast_debug:
19
  msg = '正常'
20
  # ** gpt request **
21
+ gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, llm_kwargs, history=[]) # 带超时倒计时
22
 
23
  chatbot[-1] = (i_say_show_user, gpt_say)
24
  history.append(i_say_show_user); history.append(gpt_say)
crazy_functions/读文章写摘要.py CHANGED
@@ -19,7 +19,7 @@ def 解析Paper(file_manifest, project_folder, llm_kwargs, plugin_kwargs, chatbo
19
  if not fast_debug:
20
  msg = '正常'
21
  # ** gpt request **
22
- gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, llm_kwargs, plugin_kwargs, history=[]) # 带超时倒计时
23
 
24
  chatbot[-1] = (i_say_show_user, gpt_say)
25
  history.append(i_say_show_user); history.append(gpt_say)
 
19
  if not fast_debug:
20
  msg = '正常'
21
  # ** gpt request **
22
+ gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, llm_kwargs, history=[]) # 带超时倒计时
23
 
24
  chatbot[-1] = (i_say_show_user, gpt_say)
25
  history.append(i_say_show_user); history.append(gpt_say)