Files

23 lines
846 B
Python

import os
import sys
# Ensure vocoloom package is in path
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
if hasattr(sys.stdout, "reconfigure"):
sys.stdout.reconfigure(encoding="utf-8", errors="replace")
from vocoloom.server import app
import uvicorn
if __name__ == "__main__":
port = int(os.environ.get("VOCOLOOM_PORT", 7860))
host = os.environ.get("VOCOLOOM_HOST", "0.0.0.0")
print("\n=======================================================")
print(f"🚀 VocoLoom Multi-Voice Platform Server gestartet!")
print(f"🌐 Web Studio: http://localhost:{port}/")
print(f"📡 REST API: http://localhost:{port}/api/v1/voices")
print(f"📖 Docs: http://localhost:{port}/docs")
print("=======================================================\n")
uvicorn.run(app, host=host, port=port)