From 43087e7ca3213340f94c7d400f31bfbbc0137914 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Fri, 13 Jun 2025 16:45:47 +0800 Subject: [PATCH] feat: add compilation and installation scripts for MaxKB project --- apps/common/management/commands/services/hands.py | 2 +- apps/common/management/commands/services/services/gunicorn.py | 2 +- .../common/management/commands/services/services/local_model.py | 2 +- pyproject.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/common/management/commands/services/hands.py b/apps/common/management/commands/services/hands.py index 3a693a242..2fada14c6 100644 --- a/apps/common/management/commands/services/hands.py +++ b/apps/common/management/commands/services/hands.py @@ -5,7 +5,7 @@ import sys from maxkb.const import CONFIG, PROJECT_DIR try: - from apps.smartdoc import const + from apps.maxkb import const __version__ = const.VERSION except ImportError as e: diff --git a/apps/common/management/commands/services/services/gunicorn.py b/apps/common/management/commands/services/services/gunicorn.py index cc42c4f7c..c04d4237b 100644 --- a/apps/common/management/commands/services/services/gunicorn.py +++ b/apps/common/management/commands/services/services/gunicorn.py @@ -17,7 +17,7 @@ class GunicornService(BaseService): log_format = '%(h)s %(t)s %(L)ss "%(r)s" %(s)s %(b)s ' bind = f'{HTTP_HOST}:{HTTP_PORT}' cmd = [ - 'gunicorn', 'smartdoc.wsgi:application', + 'gunicorn', 'maxkb.wsgi:application', '-b', bind, '-k', 'gthread', '--threads', '200', diff --git a/apps/common/management/commands/services/services/local_model.py b/apps/common/management/commands/services/services/local_model.py index 7591a2544..2a1ee5efa 100644 --- a/apps/common/management/commands/services/services/local_model.py +++ b/apps/common/management/commands/services/services/local_model.py @@ -27,7 +27,7 @@ class GunicornLocalModelService(BaseService): bind = f'{CONFIG.get("LOCAL_MODEL_HOST")}:{CONFIG.get("LOCAL_MODEL_PORT")}' worker = CONFIG.get("LOCAL_MODEL_HOST_WORKER", 1) cmd = [ - 'gunicorn', 'smartdoc.wsgi:application', + 'gunicorn', 'maxkb.wsgi:application', '-b', bind, '-k', 'gthread', '--threads', '200', diff --git a/pyproject.toml b/pyproject.toml index c7d45c1fe..86e8b1da4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ openpyxl = "3.1.5" python-docx = "1.1.2" xlrd = "2.0.1" xlwt = "1.3.0" -pymupdf = "1.26.1" +pymupdf = "1.24.9" pypdf = "5.6.0" gunicorn = "23.0.0" python-daemon = "3.1.2"