Download scripts/start-ui.sh from drowzeys/keys-Auto-Receipts-Studio: direct link, hf CLI and curl.
- Browser
- Download file 535 Bytes
-
https://huggingface.co/drowzeys/keys-Auto-Receipts-Studio/resolve/main/scripts/start-ui.sh
- Command line
-
hf download hf://drowzeys/keys-Auto-Receipts-Studio/scripts/start-ui.sh
-
curl -L -o start-ui.sh https://huggingface.co/drowzeys/keys-Auto-Receipts-Studio/resolve/main/scripts/start-ui.sh
535 Bytes
| # Linux / macOS: double-click start-ui.command on Mac, or run this script. | |
| set -euo pipefail | |
| SOURCE="${BASH_SOURCE[0]:-$0}" | |
| while [[ -L "$SOURCE" ]]; do | |
| DIR="$(cd "$(dirname "$SOURCE")" && pwd)" | |
| SOURCE="$(readlink "$SOURCE")" | |
| [[ "$SOURCE" != /* ]] && SOURCE="$DIR/$SOURCE" | |
| done | |
| ROOT="$(cd "$(dirname "$SOURCE")/.." && pwd)" | |
| cd "$ROOT" | |
| if [[ ! -x .venv/bin/python ]]; then | |
| echo "Creating .venv (one time)…" | |
| python3 -m venv .venv | |
| .venv/bin/pip install -e ".[dev]" | |
| fi | |
| exec .venv/bin/python -m app.launch | |