Spaces:
Runtime error
Runtime error
File size: 730 Bytes
4fc93b8 | 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 | """
Deepfake Detection Service - Backend Entry Point
This is the main entry point for the FastAPI application.
Run this file directly to start the server on localhost:8000
"""
import logging
from app import create_app
from app.core.config import get_settings
logger = logging.getLogger(__name__)
def main():
"""Initialize and run the FastAPI application."""
settings = get_settings()
app = create_app()
import uvicorn
logger.info(
f"Starting {settings.APP_NAME} on {settings.HOST}:{settings.PORT}"
)
uvicorn.run(
app,
host=settings.HOST,
port=settings.PORT,
log_level=settings.LOG_LEVEL.lower(),
)
if __name__ == "__main__":
main()
|