deepshell / start_hf.sh
muralipala1504
feat: Dockerfile.hf single container for HuggingFace Spaces deployment
8583d39
Raw
History Blame Contribute Delete
429 Bytes
#!/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