diff --git a/crazy_functions/latex_fns/latex_actions.py b/crazy_functions/latex_fns/latex_actions.py index b43d7d2f..b80c01d8 100644 --- a/crazy_functions/latex_fns/latex_actions.py +++ b/crazy_functions/latex_fns/latex_actions.py @@ -404,7 +404,7 @@ def 编译Latex(chatbot, history, main_file_original, main_file_modified, work_f result_pdf = pj(work_folder_modified, f'merge_diff.pdf') # get pdf path promote_file_to_downloadzone(result_pdf, rename_file=None, chatbot=chatbot) # promote file to web UI if modified_pdf_success: - yield from update_ui_lastest_msg(f'转化PDF编译已经成功, 正在尝试生成对比PDF, 请稍后 ...', chatbot, history) # 刷新Gradio前端界面 + yield from update_ui_lastest_msg(f'转化PDF编译已经成功, 正在尝试生成对比PDF, 请稍候 ...', chatbot, history) # 刷新Gradio前端界面 result_pdf = pj(work_folder_modified, f'{main_file_modified}.pdf') # get pdf path origin_pdf = pj(work_folder_original, f'{main_file_original}.pdf') # get pdf path if os.path.exists(pj(work_folder, '..', 'translation')): diff --git a/docs/translate_english.json b/docs/translate_english.json index 02d3b640..3920e1f6 100644 --- a/docs/translate_english.json +++ b/docs/translate_english.json @@ -2863,7 +2863,7 @@ "加载API_KEY": "Loading API_KEY", "协助您编写代码": "Assist you in writing code", "我可以为您提供以下服务": "I can provide you with the following services", - "排队中请稍后 ...": "Please wait in line ...", + "排队中请稍候 ...": "Please wait in line ...", "建议您使用英文提示词": "It is recommended to use English prompts", "不能支撑AutoGen运行": "Cannot support AutoGen operation", "帮助您解决编程问题": "Help you solve programming problems", diff --git a/request_llms/local_llm_class.py b/request_llms/local_llm_class.py index 413df03f..ec7cfd21 100644 --- a/request_llms/local_llm_class.py +++ b/request_llms/local_llm_class.py @@ -183,11 +183,11 @@ class LocalLLMHandle(Process): def stream_chat(self, **kwargs): # ⭐run in main process if self.get_state() == "`准备就绪`": - yield "`正在等待线程锁,排队中请稍后 ...`" + yield "`正在等待线程锁,排队中请稍候 ...`" with self.threadLock: if self.parent.poll(): - yield "`排队中请稍后 ...`" + yield "`排队中请稍候 ...`" self.clear_pending_messages() self.parent.send(kwargs) std_out = ""