0xarchit's picture
fix audio
54b5712
raw
history blame contribute delete
670 Bytes
import os
import sys
import uvicorn
from pathlib import Path
SERVER_DIR = Path(__file__).resolve().parent
sys.path.append(str(SERVER_DIR))
from backend.main import app
def main():
"""Run the FastAPI server."""
print("Starting AI Assistant server...")
print("Press Ctrl+C to stop the server")
uvicorn.run(
"backend.main:app",
host="0.0.0.0",
port=7860,
# Important: disable reload to avoid restarts when pyttsx3/comtypes writes to .venv
# This prevents the WebSocket from dropping right after generating audio files
reload=False,
log_level="info"
)
if __name__ == "__main__":
main()