Files
AI_ENGINE_0.5/ai_engine_main.py

27 lines
759 B
Python
Raw Normal View History

2024-03-04 14:22:56 +09:00
# -*- 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)