From fa8445fd446ac504457925085ab6871147999356 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 24 Sep 2024 11:36:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=80=E4=BA=9B=E8=B0=83=E6=95=B42?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 8e77298..d1b5987 100644 --- a/main.py +++ b/main.py @@ -38,7 +38,7 @@ gpu_available = paddle.device.is_compiled_with_cuda() print("GPU available:", gpu_available) -ocr = PaddleOCR(use_angle_cls=True, lang="ch", use_gpu=True) +ocr = PaddleOCR(use_angle_cls=True, lang="ch", use_gpu=conf.GPU_ENABLE) app = FastAPI() ALLOWED_FILE_TYPES = {"application/pdf", "image/jpeg", "image/png", "image/jpg"}