'commit'
This commit is contained in:
4
Start.py
4
Start.py
@@ -6,6 +6,8 @@ from contextlib import asynccontextmanager
|
||||
from fastapi import FastAPI
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
|
||||
from Util import Win32Patch
|
||||
|
||||
project_root = os.path.dirname(os.path.abspath(__file__))
|
||||
if project_root not in sys.path:
|
||||
sys.path.append(project_root)
|
||||
@@ -66,5 +68,5 @@ app.include_router(degree_router)
|
||||
if __name__ == "__main__":
|
||||
logger.info("Starting 驿来特AI智能分析系统 with uvicorn on http://0.0.0.0:8000")
|
||||
import uvicorn
|
||||
|
||||
Win32Patch.patch()
|
||||
uvicorn.run(app, host="0.0.0.0", port=8000)
|
||||
|
||||
Reference in New Issue
Block a user