switchlingo / start.sh
MsThai's picture
Upload folder using huggingface_hub
9a82967 verified
Raw History Blame Contribute Delete
376 Bytes
#!/usr/bin/env bash
# Ox Translate - Mac/Linux launcher. Run: ./start.sh then open http://localhost:8000
set -e
cd "$(dirname "$0")"
if [ ! -d .venv ]; then
python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txt
else
. .venv/bin/activate
fi
[ -f .env ] && set -a && . ./.env && set +a
python -m uvicorn app.server:app --host 127.0.0.1 --port 8000