From ca087598255582ef59df527baff1b235036ca5fa Mon Sep 17 00:00:00 2001 From: Defeng Date: Wed, 8 Jul 2026 09:09:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20filename=5Fproceess=5Fand?= =?UTF-8?q?=5Fkgquery.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit filename_proceess_and_kgquery.py里面配置信息统一从app.py导入 --- filename_proceess_and_kgquery.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/filename_proceess_and_kgquery.py b/filename_proceess_and_kgquery.py index 2b708c1..25e2130 100644 --- a/filename_proceess_and_kgquery.py +++ b/filename_proceess_and_kgquery.py @@ -13,6 +13,7 @@ import json from modelsAPI.model_api import OpenaiAPI from openai import OpenAI from typing import Dict, List, Any +from config import TREE_JSON_PATH app = FastAPI(title="PDF Upload Service") logging.basicConfig(level=logging.INFO, format="%(asctime)s | %(levelname)s | %(name)s | %(message)s") @@ -540,8 +541,8 @@ def fetch_graph_sample1(driver): # 文件名处理方法 # ============================= -BASE_DIR = os.path.dirname(os.path.abspath(__file__)) -TREE_JSON_PATH = os.path.join(BASE_DIR, "tree_data.json") +# BASE_DIR = os.path.dirname(os.path.abspath(__file__)) +# TREE_JSON_PATH = os.path.join(BASE_DIR, "tree_data.json") def _load_tree_data() -> Dict: