Spaces:
Runtime error
Runtime error
Download start.sh from luli331/oppy_google: direct link, hf CLI and curl.
- Browser
- Download file 354 Bytes
-
https://huggingface.co/spaces/luli331/oppy_google/resolve/main/start.sh
- Command line
-
hf download hf://spaces/luli331/oppy_google/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/luli331/oppy_google/resolve/main/start.sh
354 Bytes
| set -e | |
| # Install Python deps | |
| cd backend | |
| pip install -q -r requirements.txt 2>/dev/null | |
| # Build frontend | |
| cd ../frontend | |
| npm install --silent 2>/dev/null | |
| npx vite build --outDir ../backend/static 2>/dev/null | |
| echo "Frontend built." | |
| # Start backend (serves API + static frontend) | |
| cd ../backend | |
| exec uvicorn main:app --host 0.0.0.0 --port 8000 | |