non use ai
This commit is contained in:
27
ai_engine_main.py
Normal file
27
ai_engine_main.py
Normal 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)
|
||||
Reference in New Issue
Block a user