Initial commit for deployment
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
"""
|
||||
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
|
||||
)
|
||||
Reference in New Issue
Block a user