-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
38 lines (29 loc) · 938 Bytes
/
run.py
File metadata and controls
38 lines (29 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"""
Run the Process Analyzer application.
Usage:
python run.py
Or with uvicorn directly:
uvicorn app.api.main:app --reload
"""
import uvicorn
from app.config import get_settings
settings = get_settings()
def main():
"""Start the FastAPI server."""
print("""
============================================================
PROCESS ANALYZER
AI-Assisted Writing Process Analyzer
============================================================""")
print(f" Starting server at: http://{settings.host}:{settings.port}")
print(f" API Docs at: http://{settings.host}:{settings.port}/docs")
print(f" Debug mode: {settings.debug}")
print("============================================================\n")
uvicorn.run(
"app.api.main:app",
host=settings.host,
port=settings.port,
reload=settings.reload,
)
if __name__ == "__main__":
main()