更新一些配置与配置相关的代码
This commit is contained in:
@@ -13,7 +13,7 @@ from torchvision import transforms
|
||||
import pandas as pd
|
||||
from minio import Minio
|
||||
|
||||
from app.core.config import MINIO_IP, MINIO_PORT, MINIO_SECURE, MINIO_ACCESS, MINIO_SECRET
|
||||
from app.core.config import MINIO_IP, MINIO_PORT, MINIO_SECURE, MINIO_ACCESS, MINIO_SECRET, ATT_TRITON_IP, ATT_TRITON_PORT
|
||||
|
||||
|
||||
def Merge(dict1, dict2):
|
||||
@@ -54,7 +54,7 @@ class Rescale(object):
|
||||
|
||||
class AttributeRecognition:
|
||||
def __init__(self):
|
||||
self.httpclient = httpclient.InferenceServerClient(url="10.1.1.150:6000")
|
||||
self.httpclient = httpclient.InferenceServerClient(url=f"{ATT_TRITON_IP}:{ATT_TRITON_PORT}")
|
||||
self.minio_client = Minio(
|
||||
f"{MINIO_IP}:{MINIO_PORT}",
|
||||
access_key=MINIO_ACCESS,
|
||||
|
||||
Reference in New Issue
Block a user