non use ai

This commit is contained in:
2024-03-04 14:22:56 +09:00
parent 3d12dfe64d
commit 209ba8345f
92 changed files with 9130 additions and 3 deletions

27
ai_engine_main.py Normal file
View File

@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
"""
@file : ai_engine_main.py
@author: hsj100
@license: A2TEC & DAOOLDNS
@brief: 개발시 모듈(main) 실행
@section Modify History
- 2022-01-14 오전 11:31 hsj100 base
"""
import os, sys
import uvicorn
# AI_ENGINE_PATH = "/AI_ENGINE"
REST_SERVER_PATH = "/REST_AI_ENGINE_CONTROL"
# sys.path.append(os.path.abspath(os.path.dirname(__file__)) + AI_ENGINE_PATH)
sys.path.append(os.path.abspath(os.path.dirname(__file__)) + REST_SERVER_PATH)
from REST_AI_ENGINE_CONTROL.app.common.config import conf
if __name__ == '__main__':
print('main.py run')
# os.system(". ./rtsp_start.sh")
uvicorn.run('REST_AI_ENGINE_CONTROL.app.main:app', host='0.0.0.0', port=conf().REST_SERVER_PORT, reload=True)