File size: 375 Bytes
8e73bed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""
SWARA API - Entry Point untuk HuggingFace Spaces (Non-Docker)
"""
import os
import uvicorn
from app.main import app

if __name__ == "__main__":
    # Get port from environment (HuggingFace uses 7860)
    port = int(os.environ.get("PORT", 7860))
    
    # Run server
    uvicorn.run(
        app,
        host="0.0.0.0",
        port=port,
        log_level="info"
    )