超分新增发布rabbitmq消息

This commit is contained in:
zhouchengrong
2024-03-21 11:12:01 +08:00
parent 124fd5cdeb
commit fa52ea9102
7 changed files with 2709 additions and 35 deletions

View File

@@ -1,4 +1,6 @@
import os
import pika
from dotenv import load_dotenv
from pydantic import BaseSettings
@@ -47,7 +49,25 @@ MINIO_IP = "www.minio.aida.com.hk"
MINIO_PORT = 9000
MINIO_ACCESS = 'vXKFLSJkYeEq2DrSZvkB'
MINIO_SECRET = 'uKTZT3x7C43WvPN9QTc99DiRkwddWZrG9Uh3JVlR'
# redis 配置
REDIS_HOST = "10.1.1.240"
REDIS_PORT = "6379"
REDIS_DB = "2"
MINIO_SECURE = True
# input = 'preprocess_img/input_x2' # 这个值需要被函数参数覆盖
# output = '/path/to/output' # 这个值将被函数参数覆盖
LOGS_PATH = "app/logs/errors.log"
# LOGS_PATH = "app/logs/errors.log"
LOGS_PATH = "logs/errors.log"
SR_MODEL_NAME = "super_resolution"
# rabbitmq config
RABBITMQ_PARAMS = {
"host": "18.167.251.121",
"port": 5672,
"credentials": pika.credentials.PlainCredentials(username='rabbit', password='123456'),
"virtual_host": "/"
}