#!/usr/bin/env python3
"""
Backend server startup script that uses environment variables from config.
"""

import uvicorn
from app import config

if __name__ == "__main__":
    print(f"Starting Chatterbox TTS Backend Server...")
    print(f"Host: {config.HOST}")
    print(f"Port: {config.PORT}")
    print(f"Reload: {config.RELOAD}")
    print(f"CORS Origins: {config.CORS_ORIGINS}")
    print(f"Project Root: {config.PROJECT_ROOT}")
    print(f"Device: {config.DEVICE}")
    
    uvicorn.run(
        "app.main:app",
        host=config.HOST,
        port=config.PORT,
        reload=config.RELOAD
    )
