Picture using minio service
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
|
import logging
|
||||||
import os
|
import os
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
from pydantic import BaseSettings
|
from pydantic import BaseSettings
|
||||||
|
|
||||||
BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '../../'))
|
BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '../../'))
|
||||||
|
logging.info(f"BASE_DIR : {BASE_DIR}")
|
||||||
load_dotenv(os.path.join(BASE_DIR, '.env'))
|
load_dotenv(os.path.join(BASE_DIR, '.env'))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
import io
|
import io
|
||||||
|
|
||||||
import requests
|
|
||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
import cv2
|
import cv2
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ LOGGER_CONFIG_DICT = {
|
|||||||
"class": "logging.handlers.RotatingFileHandler",
|
"class": "logging.handlers.RotatingFileHandler",
|
||||||
"level": "INFO",
|
"level": "INFO",
|
||||||
"formatter": "simple",
|
"formatter": "simple",
|
||||||
"filename": "logs/info.log",
|
"filename": "app/logs/info.log",
|
||||||
"maxBytes": 10485760,
|
"maxBytes": 10485760,
|
||||||
"backupCount": 50,
|
"backupCount": 50,
|
||||||
"encoding": "utf8",
|
"encoding": "utf8",
|
||||||
@@ -24,7 +24,7 @@ LOGGER_CONFIG_DICT = {
|
|||||||
"class": "logging.handlers.RotatingFileHandler",
|
"class": "logging.handlers.RotatingFileHandler",
|
||||||
"level": "ERROR",
|
"level": "ERROR",
|
||||||
"formatter": "simple",
|
"formatter": "simple",
|
||||||
"filename": "logs/errors.log",
|
"filename": "app/logs/errors.log",
|
||||||
"maxBytes": 10485760,
|
"maxBytes": 10485760,
|
||||||
"backupCount": 20,
|
"backupCount": 20,
|
||||||
"encoding": "utf8",
|
"encoding": "utf8",
|
||||||
@@ -33,7 +33,7 @@ LOGGER_CONFIG_DICT = {
|
|||||||
"class": "logging.handlers.RotatingFileHandler",
|
"class": "logging.handlers.RotatingFileHandler",
|
||||||
"level": "DEBUG",
|
"level": "DEBUG",
|
||||||
"formatter": "simple",
|
"formatter": "simple",
|
||||||
"filename": "logs/debug.log",
|
"filename": "app/logs/debug.log",
|
||||||
"maxBytes": 10485760,
|
"maxBytes": 10485760,
|
||||||
"backupCount": 50,
|
"backupCount": 50,
|
||||||
"encoding": "utf8",
|
"encoding": "utf8",
|
||||||
|
|||||||
BIN
requirements.txt
BIN
requirements.txt
Binary file not shown.
Reference in New Issue
Block a user