Files

22 lines
498 B
Python
Raw Permalink Normal View History

2025-05-09 15:41:16 +01:00
"""
Script to run the AI service.
"""
import uvicorn
import os
import sys
# Add the parent directory to the path so we can import ai_service
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from ai_service.config import config
if __name__ == "__main__":
print(f"Starting AI service on {config.API_HOST}:{config.API_PORT}")
uvicorn.run(
"ai_service.api:app",
host=config.API_HOST,
port=config.API_PORT,
reload=True
)