From 5d7a5db4568d415c64ed9907c3758cbf813513e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=A8?= Date: Thu, 5 Jan 2023 18:15:56 +0800 Subject: [PATCH] edgeUpdate --- ieemoo-ai-searchv2.py | 2 +- utils/config.py | 2 +- utils/updateObs.py | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ieemoo-ai-searchv2.py b/ieemoo-ai-searchv2.py index e1662be..8219741 100755 --- a/ieemoo-ai-searchv2.py +++ b/ieemoo-ai-searchv2.py @@ -25,7 +25,7 @@ if SW_SERVER and SW_SERVICE_NAME: config.init() #采集服务的地址,给自己的服务起个名称 #config.init(collector="123.60.56.51:11800", service='ieemoo-ai-search') #采集服务的地址,给自己的服务起个名称 agent.start() -os.environ["CUDA_VISIBLE_DEVICES"] = '1' +os.environ["CUDA_VISIBLE_DEVICES"] = '0' app = Flask(__name__) diff --git a/utils/config.py b/utils/config.py index b9af5e5..cf5c90a 100644 --- a/utils/config.py +++ b/utils/config.py @@ -56,7 +56,7 @@ _C.VreTest2 = 'http://api.test2.ieemoo.cn/emoo-api/intelligence/queryVideoCompar _C.Vre = 'https://api.ieemoo.com/emoo-api/intelligence/queryVideoCompareResult.do' #online _C.backups = '../module/output/videos' -_C.riskControl = 'http://api.test.ieemoo.com/emoo-api/riskControl/shoporder/checkUploadAiImages?storeId=32001001' +_C.riskControl = 'http://api.test2.ieemoo.com/emoo-api/riskControl/shoporder/checkUploadAiImages?storeId=32001001' _C.Ocrimg = '../module/ieemoo-ai-assist/imgs'#post ocr img _C.Ocrtxt = '../module/ieemoo-ai-assist/document'#post ocr txts diff --git a/utils/updateObs.py b/utils/updateObs.py index 4071569..bcfa1bb 100644 --- a/utils/updateObs.py +++ b/utils/updateObs.py @@ -35,7 +35,7 @@ def addobs(file_path, status): #save videos status = resp.json() if not 'data' in status:#延迟设置 ti.sleep(15) - resp = requests.post(url=Vre, data=json_data) + resp = requests.post(url=vre, data=json_data) status = resp.json() if 'data' in status: break @@ -53,7 +53,6 @@ def addobs(file_path, status): #save videos objectkey = 'videos/'+time+'/'+status+'/'+status+'_'+objectkey if status == '02' or status_: resp = obsClient.putFile(bucketName, objectkey, file_path) - #print('>>>>>>>>>>>>>>', file_path, backups_path) shutil.move(file_path, backups_path) #os.remove(file_path)