Peter Michael Gits
Fix config file extension mismatch in start.sh - use TOML not JSON
0d4c595
raw
history blame contribute delete
827 Bytes
#!/bin/bash
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