Instructions to use botezx/flagtldr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Grok
How to use botezx/flagtldr with Grok:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download scripts/demo.sh from botezx/flagtldr: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/botezx/flagtldr/resolve/main/scripts/demo.sh
- Command line
-
hf download hf://botezx/flagtldr/scripts/demo.sh
-
curl -L -o demo.sh https://huggingface.co/botezx/flagtldr/resolve/main/scripts/demo.sh
1.16 kB
| # Local demo + screenshots, no real X account needed: | |
| # mock x.com (HTTPS, :8443) + classifier service (:8765) + Chrome for Testing with the unpacked extension. | |
| # XA_CLASSIFIER=basal scripts/demo.sh # needs scripts/basal-serve.sh running on :8000 | |
| set -euo pipefail | |
| source "$(dirname "$0")/env.sh" | |
| cd "$XA_ROOT" | |
| [ -d scripts/e2e/node_modules ] || (cd scripts/e2e && npm install --no-fund --no-audit) | |
| CHROME="$(ls -d "$XA_ROOT"/.tools/cft/chrome/*/chrome-linux64/chrome 2>/dev/null | head -1 || true)" | |
| if [ -z "$CHROME" ]; then | |
| (cd scripts/e2e && npx @puppeteer/browsers install chrome@stable --path "$XA_ROOT/.tools/cft") | |
| CHROME="$(ls -d "$XA_ROOT"/.tools/cft/chrome/*/chrome-linux64/chrome | head -1)" | |
| fi | |
| python3 scripts/e2e/mock-x-server.py 8443 & MOCK=$! | |
| (cd classifier && uv run xaddons-classifier serve --backend "${XA_CLASSIFIER:-rules}") & CLS=$! | |
| trap 'kill $MOCK $CLS 2>/dev/null || true' EXIT | |
| for i in $(seq 1 30); do curl -sf localhost:8765/health >/dev/null && break; sleep 1; done | |
| (cd scripts/e2e && node screens.mjs "$CHROME" && node diag.mjs "$CHROME" && node geo.mjs "$CHROME") | |
| echo "Screenshots in docs/screenshots/" | |