import uvicorn
import logging
from app.app import create_app
# Configure logging (can be moved to a higher level, like app.py, if preferred)
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
# Use the application factory to create the FastAPI app instance
app = create_app()
if __name__ == "__main__":
# This block allows you to run the application directly with 'python main.py'
# For production, it's recommended to use the `uvicorn` command directly.
uvicorn.run(app, host="0.0.0.0", port=8000)