-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
33 lines (31 loc) · 1.74 KB
/
main.py
File metadata and controls
33 lines (31 loc) · 1.74 KB
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
#!/usr/bin/env python3
"""
TDS Assistant - Main Entry Point
AI-Powered Question Answering System for Data Science
"""
import uvicorn
from vicky_app import app
from src.core.config import settings
if __name__ == "__main__":
print(f"""
╔═══════════════════════════════════════════════════════════╗
║ ║
║ 🎯 TDS Assistant v{settings.APP_VERSION} ║
║ AI-Powered Question Answering System ║
║ ║
╠═══════════════════════════════════════════════════════════╣
║ ║
║ 🌐 Server: http://{settings.HOST}:{settings.PORT} ║
║ 📖 API Docs: http://localhost:{settings.PORT}/docs ║
║ 🔧 Debug Mode: {str(settings.DEBUG).lower()} ║
║ ║
║ Press Ctrl+C to stop ║
║ ║
╚═══════════════════════════════════════════════════════════╝
""")
uvicorn.run(
"vicky_app:app",
host=settings.HOST,
port=settings.PORT,
reload=settings.DEBUG
)