更新 filename_proceess_and_kgquery.py
filename_proceess_and_kgquery.py里面配置信息统一从app.py导入
This commit is contained in:
parent
2ceb6dbaf5
commit
ca08759825
@ -13,6 +13,7 @@ import json
|
|||||||
from modelsAPI.model_api import OpenaiAPI
|
from modelsAPI.model_api import OpenaiAPI
|
||||||
from openai import OpenAI
|
from openai import OpenAI
|
||||||
from typing import Dict, List, Any
|
from typing import Dict, List, Any
|
||||||
|
from config import TREE_JSON_PATH
|
||||||
|
|
||||||
app = FastAPI(title="PDF Upload Service")
|
app = FastAPI(title="PDF Upload Service")
|
||||||
logging.basicConfig(level=logging.INFO, format="%(asctime)s | %(levelname)s | %(name)s | %(message)s")
|
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__))
|
# BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||||
TREE_JSON_PATH = os.path.join(BASE_DIR, "tree_data.json")
|
# TREE_JSON_PATH = os.path.join(BASE_DIR, "tree_data.json")
|
||||||
|
|
||||||
|
|
||||||
def _load_tree_data() -> Dict:
|
def _load_tree_data() -> Dict:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user