Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download start.sh from MsThai/switchlingo: direct link, hf CLI and curl.
- Browser
- Download file 376 Bytes
-
https://huggingface.co/spaces/MsThai/switchlingo/resolve/main/start.sh
- Command line
-
hf download hf://spaces/MsThai/switchlingo/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/MsThai/switchlingo/resolve/main/start.sh
376 Bytes
| # 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 | |