feat 新增 process lookbooks 接口

fix
This commit is contained in:
zhouchengrong
2024-10-22 15:11:08 +08:00
parent 61af80541b
commit ed017fdf9d
8 changed files with 24 additions and 24 deletions

View File

@@ -1,7 +1,9 @@
import logging
import os
from typing import ClassVar
from dotenv import load_dotenv
from pydantic import BaseSettings
from pydantic_settings import BaseSettings
BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '../../'))
logging.info(f"BASE_DIR : {BASE_DIR}")
@@ -9,14 +11,14 @@ load_dotenv(os.path.join(BASE_DIR, '.env'))
class Settings(BaseSettings):
PROJECT_NAME = os.getenv('PROJECT_NAME', 'FASTAPI BASE')
SECRET_KEY = os.getenv('SECRET_KEY', '')
API_PREFIX = ''
BACKEND_CORS_ORIGINS = ['*']
DATABASE_URL = os.getenv('SQL_DATABASE_URL', '')
PROJECT_NAME: ClassVar[str] = 'FASTAPI BASE'
SECRET_KEY: str = ''
API_PREFIX: str = ''
BACKEND_CORS_ORIGINS: list[str] = ['*']
DATABASE_URL: str = ''
ACCESS_TOKEN_EXPIRE_SECONDS: int = 60 * 60 * 24 * 7 # Token expired after 7 days
SECURITY_ALGORITHM = 'HS256'
LOGGING_CONFIG_FILE = os.path.join(BASE_DIR, 'logging_env.py')
SECURITY_ALGORITHM: str = 'HS256'
LOGGING_CONFIG_FILE: str = os.path.join(BASE_DIR, 'logging_env.py')
settings = Settings()
@@ -35,7 +37,7 @@ ATT_TRITON_PORT = "20010"
MILVUS_URL = "http://10.1.1.240:19530"
DEBUG = 1
DEBUG = 2
SHOW_OR_SAVE_result_image = False
# service env : 1
# pycharm debug : 2