File size: 594 Bytes
d14edbf
 
 
 
 
 
 
 
 
 
9594324
 
 
d14edbf
 
 
 
 
9594324
d14edbf
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python3
"""
Script per avviare il Local Translation Server
"""

import uvicorn
from app import app

if __name__ == "__main__":
    print("πŸš€ Avvio Local Translation Server...")
    print("πŸ“‘ Server disponibile su: http://localhost:7860")
    print("πŸ“š Documentazione API: http://localhost:7860/docs")
    print("πŸ” Interfaccia Redoc: http://localhost:7860/redoc")
    print("\n" + "="*50)
    
    uvicorn.run(
        app, 
        host="0.0.0.0", 
        port=7860,
        log_level="info",
        reload=False  # Disabilita il reload automatico in produzione
    )