From 27db9006929699c26cdcd0de5e1669ffae4b9c5d Mon Sep 17 00:00:00 2001 From: binary-husky Date: Mon, 13 Nov 2023 00:24:20 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=A7=BB=E9=99=A4batchsize?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crazy_functions/crazy_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crazy_functions/crazy_utils.py b/crazy_functions/crazy_utils.py index 832775d1..a23c732b 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 4', os.getcwd(), timeout=3600) + self.nougat_with_timeout(f'nougat --out "{os.path.abspath(dst)}" "{os.path.abspath(fp)}"', os.getcwd(), timeout=3600) res = glob.glob(os.path.join(dst,'*.mmd')) if len(res) == 0: self.threadLock.release() From 7b526cf74b03dfd1fe8f9fed8b726dcc5aa37d66 Mon Sep 17 00:00:00 2001 From: binary-husky Date: Mon, 13 Nov 2023 00:48:48 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0scipdf=5Fparser?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- requirements.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/requirements.txt b/requirements.txt index 1f86d336..a5782f77 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,24 +1,24 @@ ./docs/gradio-3.32.6-py3-none-any.whl -pydantic==1.10.11 +pypdf2==2.12.1 tiktoken>=0.3.3 requests[socks] +pydantic==1.10.11 transformers>=4.27.1 +scipdf_parser>=0.52 python-markdown-math +websocket-client beautifulsoup4 prompt_toolkit latex2mathml python-docx mdtex2html anthropic +pyautogen colorama Markdown pygments pymupdf openai -pyautogen -numpy arxiv +numpy rich -pypdf2==2.12.1 -websocket-client -scipdf_parser>=0.3