Update views.py

master
thomas-yanxin 2022-10-31 01:00:24 +08:00 committed by GitHub
parent 39b45ca667
commit 5400577c0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions
Smart_container/app01

View File

@ -28,10 +28,6 @@ from xpinyin import Pinyin
url = "http://127.0.0.1:18081/recognition/prediction"
# with open(os.path.join(".", imgpath), 'rb') as file:
@ -131,7 +127,7 @@ def update():
fh.close()
os.system('python3 ./PaddleClas/deploy/python/build_gallery.py -c ./PaddleClas/deploy/configs/build_product.yaml -o IndexProcess.data_file="./PaddleClas/dataset/retail/data_update.txt" -o IndexProcess.index_dir="./PaddleClas/dataset/retail/index_update"')
os.system('sh ./start_server.sh')
# 识别模块