#!/bin/bash # Start LibreTranslate in background source /opt/venvs/libretranslate/bin/activate libretranslate --host 0.0.0.0 --port 5000 --load-only en,hi & deactivate # Warmup LibreTranslate after 10 seconds sleep 10 && curl -s -X POST http://localhost:5000/translate \ -H "Content-Type: application/json" \ -d '{"q":"warmup","source":"en","target":"hi"}' > /dev/null 2>&1 & # Start DeepShell exec python -m deepshell