From c45336a3cdcb9251ac90d85ce62d0109c623f30c Mon Sep 17 00:00:00 2001 From: binary-husky Date: Sun, 12 Nov 2023 15:57:18 +0800 Subject: [PATCH] change nougat batchsize --- crazy_functions/crazy_utils.py | 2 +- docs/translate_english.json | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/crazy_functions/crazy_utils.py b/crazy_functions/crazy_utils.py index e674e4f..832775d 100644 --- a/crazy_functions/crazy_utils.py +++ b/crazy_functions/crazy_utils.py @@ -748,7 +748,7 @@ class nougat_interface(): yield from update_ui_lastest_msg("正在解析论文, 请稍候。进度:正在加载NOUGAT... (提示:首次运行需要花费较长时间下载NOUGAT参数)", chatbot=chatbot, history=history, delay=0) - self.nougat_with_timeout(f'nougat --out "{os.path.abspath(dst)}" "{os.path.abspath(fp)}" --batchsize 8', os.getcwd(), timeout=3600) + self.nougat_with_timeout(f'nougat --out "{os.path.abspath(dst)}" "{os.path.abspath(fp)}" --batchsize 4', os.getcwd(), timeout=3600) res = glob.glob(os.path.join(dst,'*.mmd')) if len(res) == 0: self.threadLock.release() diff --git a/docs/translate_english.json b/docs/translate_english.json index 3cdaf20..f7deee3 100644 --- a/docs/translate_english.json +++ b/docs/translate_english.json @@ -501,7 +501,8 @@ "环境变量": "Environment variable", "不支持通过环境变量设置!": "Setting through environment variables is not supported!", "加载失败!": "Loading failed!", - "成功读取环境变量": "Successfully read environment variables", + "如": " e.g., ", + "成功读取环境变量": "Successfully read environment variable: ", "本项目现已支持OpenAI和API2D的api-key": "This project now supports api-keys for OpenAI and API2D", "也支持同时填写多个api-key": "It also supports filling in multiple api-keys at the same time", "您既可以在config.py中修改api-key": "You can modify the api-key in config.py", @@ -512,7 +513,7 @@ "请在config文件中修改API密钥之后再运行": "Please modify the API key in the config file before running", "网络代理状态": "Network proxy status", "未配置": "Not configured", - "无代理状态下很可能无法访问OpenAI家族的模型": "It is very likely that you cannot access OpenAI's models without a proxy", + "无代理状态下很可能无法访问OpenAI家族的模型": "", "建议": "Suggestion", "检查USE_PROXY选项是否修改": "Check if the USE_PROXY option has been modified", "已配置": "Configured",