Spaces:
Running
Running
紧急BUG修复
Browse files- crazy_functions/总结word文档.py +1 -1
- crazy_functions/批量总结PDF文档.py +1 -1
- crazy_functions/批量总结PDF文档pdfminer.py +1 -1
- crazy_functions/理解PDF文档内容.py +1 -1
- crazy_functions/读文章写摘要.py +1 -1
- toolbox.py +0 -1
crazy_functions/总结word文档.py
CHANGED
|
@@ -65,7 +65,7 @@ def 解析docx(file_manifest, project_folder, llm_kwargs, plugin_kwargs, chatbot
|
|
| 65 |
if not fast_debug:
|
| 66 |
msg = '正常'
|
| 67 |
# ** gpt request **
|
| 68 |
-
gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say, chatbot, llm_kwargs,
|
| 69 |
history=history) # 带超时倒计时
|
| 70 |
|
| 71 |
chatbot[-1] = (i_say, gpt_say)
|
|
|
|
| 65 |
if not fast_debug:
|
| 66 |
msg = '正常'
|
| 67 |
# ** gpt request **
|
| 68 |
+
gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say, chatbot, llm_kwargs,
|
| 69 |
history=history) # 带超时倒计时
|
| 70 |
|
| 71 |
chatbot[-1] = (i_say, gpt_say)
|
crazy_functions/批量总结PDF文档.py
CHANGED
|
@@ -92,7 +92,7 @@ def 解析PDF(file_manifest, project_folder, llm_kwargs, plugin_kwargs, chatbot,
|
|
| 92 |
if not fast_debug:
|
| 93 |
msg = '正常'
|
| 94 |
# ** gpt request **
|
| 95 |
-
gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say, chatbot, llm_kwargs,
|
| 96 |
|
| 97 |
chatbot[-1] = (i_say, gpt_say)
|
| 98 |
history.append(i_say); history.append(gpt_say)
|
|
|
|
| 92 |
if not fast_debug:
|
| 93 |
msg = '正常'
|
| 94 |
# ** gpt request **
|
| 95 |
+
gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say, chatbot, llm_kwargs, history=history) # 带超时倒计时
|
| 96 |
|
| 97 |
chatbot[-1] = (i_say, gpt_say)
|
| 98 |
history.append(i_say); history.append(gpt_say)
|
crazy_functions/批量总结PDF文档pdfminer.py
CHANGED
|
@@ -97,7 +97,7 @@ def 解析Paper(file_manifest, project_folder, llm_kwargs, plugin_kwargs, chatbo
|
|
| 97 |
if not fast_debug:
|
| 98 |
msg = '正常'
|
| 99 |
# ** gpt request **
|
| 100 |
-
gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say, chatbot, llm_kwargs,
|
| 101 |
|
| 102 |
chatbot[-1] = (i_say, gpt_say)
|
| 103 |
history.append(i_say); history.append(gpt_say)
|
|
|
|
| 97 |
if not fast_debug:
|
| 98 |
msg = '正常'
|
| 99 |
# ** gpt request **
|
| 100 |
+
gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say, chatbot, llm_kwargs, history=history) # 带超时倒计时
|
| 101 |
|
| 102 |
chatbot[-1] = (i_say, gpt_say)
|
| 103 |
history.append(i_say); history.append(gpt_say)
|
crazy_functions/理解PDF文档内容.py
CHANGED
|
@@ -97,7 +97,7 @@ def 解析PDF(file_name, llm_kwargs, plugin_kwargs, chatbot, history, system_pro
|
|
| 97 |
yield from update_ui(chatbot=chatbot, history=history) # 刷新界面
|
| 98 |
|
| 99 |
# ** gpt request **
|
| 100 |
-
gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say, chatbot, llm_kwargs,
|
| 101 |
chatbot[-1] = (i_say, gpt_say)
|
| 102 |
history.append(i_say); history.append(gpt_say)
|
| 103 |
yield from update_ui(chatbot=chatbot, history=history) # 刷新界面
|
|
|
|
| 97 |
yield from update_ui(chatbot=chatbot, history=history) # 刷新界面
|
| 98 |
|
| 99 |
# ** gpt request **
|
| 100 |
+
gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say, chatbot, llm_kwargs, history=history) # 带超时倒计时
|
| 101 |
chatbot[-1] = (i_say, gpt_say)
|
| 102 |
history.append(i_say); history.append(gpt_say)
|
| 103 |
yield from update_ui(chatbot=chatbot, history=history) # 刷新界面
|
crazy_functions/读文章写摘要.py
CHANGED
|
@@ -34,7 +34,7 @@ def 解析Paper(file_manifest, project_folder, llm_kwargs, plugin_kwargs, chatbo
|
|
| 34 |
if not fast_debug:
|
| 35 |
msg = '正常'
|
| 36 |
# ** gpt request **
|
| 37 |
-
gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say, chatbot, llm_kwargs,
|
| 38 |
|
| 39 |
chatbot[-1] = (i_say, gpt_say)
|
| 40 |
history.append(i_say); history.append(gpt_say)
|
|
|
|
| 34 |
if not fast_debug:
|
| 35 |
msg = '正常'
|
| 36 |
# ** gpt request **
|
| 37 |
+
gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say, chatbot, llm_kwargs, history=history) # 带超时倒计时
|
| 38 |
|
| 39 |
chatbot[-1] = (i_say, gpt_say)
|
| 40 |
history.append(i_say); history.append(gpt_say)
|
toolbox.py
CHANGED
|
@@ -75,7 +75,6 @@ def get_reduce_token_percent(text):
|
|
| 75 |
except:
|
| 76 |
return 0.5, '不详'
|
| 77 |
|
| 78 |
-
|
| 79 |
def predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, llm_kwargs, history=[], sys_prompt='', long_connection=True):
|
| 80 |
"""
|
| 81 |
* 此函数未来将被弃用(替代函数 request_gpt_model_in_new_thread_with_ui_alive 文件 chatgpt_academic/crazy_functions/crazy_utils)
|
|
|
|
| 75 |
except:
|
| 76 |
return 0.5, '不详'
|
| 77 |
|
|
|
|
| 78 |
def predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, llm_kwargs, history=[], sys_prompt='', long_connection=True):
|
| 79 |
"""
|
| 80 |
* 此函数未来将被弃用(替代函数 request_gpt_model_in_new_thread_with_ui_alive 文件 chatgpt_academic/crazy_functions/crazy_utils)
|