From 13b8cff9d9dd6e71e8662bf548d36ceafeb18933 Mon Sep 17 00:00:00 2001 From: William Jin Date: Thu, 26 Sep 2024 15:37:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chyoso_toolkit_ui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chyoso_toolkit_ui.py b/chyoso_toolkit_ui.py index 31ac6c0..d1e5b40 100644 --- a/chyoso_toolkit_ui.py +++ b/chyoso_toolkit_ui.py @@ -169,7 +169,7 @@ def download_pdf(curl_command, pdf_filename): def run_ocr(image): # 保存上传的图片到指定路径 - image_path = os.path.expanduser("/home/tmfc/got-ocr/img.png") + image_path = os.path.expanduser("/home/tmfc/apps/got-ocr/img.png") image.save(image_path) # 激活 Conda 环境 @@ -177,8 +177,8 @@ def run_ocr(image): # 调用 OCR 命令 ocr_command = [ - "python3", "/home/tmfc/got-ocr/GOT/demo/run_ocr_2.0_crop.py", - "--model-name", "/home/tmfc/got-ocr/models/", + "python3", "/home/tmfc/apps/got-ocr/GOT/demo/run_ocr_2.0_crop.py", + "--model-name", "/home/tmfc/apps/got-ocr/models/", "--image-file", image_path ]