Spaces:
Runtime error
Runtime error
| echo "===== Application Startup at $(date) =====" | |
| echo "" | |
| echo "π€ Starting Kyutai STT Server Moshi v4 with official moshi-server..." | |
| # Create static directory for moshi-server | |
| mkdir -p /app/static | |
| echo "π Pre-loaded models:" | |
| ls -lah /app/models/ | |
| echo "GPU Info:" | |
| nvidia-smi || echo "No GPU detected at runtime" | |
| echo "π Official moshi-server endpoints:" | |
| echo " - STT Streaming: /api/asr-streaming (MessagePack protocol)" | |
| echo " - Health Check: /health" | |
| echo "Starting Python frontend and official moshi-server..." | |
| # Start moshi-server in background | |
| cd /app | |
| moshi-server worker --config configs/config-stt-en_fr-hf.toml & | |
| MOSHI_PID=$! | |
| # Wait a moment for moshi-server to start | |
| sleep 3 | |
| # Start the Python web interface | |
| python3 app.py & | |
| WEB_PID=$! | |
| # Wait for both processes | |
| wait $MOSHI_PID $WEB_PID |