Download run_modal.ps1 from build-small-hackathon/brad-did-something: direct link, hf CLI and curl.
- Browser
- Download file 978 Bytes
-
https://huggingface.co/spaces/build-small-hackathon/brad-did-something/resolve/main/run_modal.ps1
- Command line
-
hf download hf://spaces/build-small-hackathon/brad-did-something/run_modal.ps1
-
curl -L -o run_modal.ps1 https://huggingface.co/spaces/build-small-hackathon/brad-did-something/resolve/main/run_modal.ps1
978 Bytes
| # Launch Brad Did Something against the deployed Modal GPU endpoints. | |
| # .\run_modal.ps1 | |
| $env:MODAL_URL = "https://qfelix0112--brad-did-something-llama-generate.modal.run" | |
| $env:MODAL_TOKEN = (Get-Content "$PSScriptRoot\.bds_modal_token" -Raw).Trim() | |
| # 20s tolerates the one-time container cold start; warm calls are 2-4s | |
| $env:BDS_LLM_TIMEOUT = "20" | |
| # --- Comic panels (FLUX image generation on Modal) — optional --- | |
| # After `modal deploy modal_app/image.py`, Modal prints the generate_image URL. | |
| # Paste it below (this is the predicted name — VERIFY it matches the deploy | |
| # output). The bearer token is the SAME bds-auth BDS_TOKEN as the text model. | |
| # Leave FLUX_URL blank to play without comics — the overlay just no-ops. | |
| $env:FLUX_URL = "https://qfelix0112--brad-comic-flux-generate-image.modal.run" | |
| $env:FLUX_TOKEN = $env:MODAL_TOKEN | |
| # FLUX cold start is large (~30-60s); warm klein calls are a few seconds | |
| $env:BDS_FLUX_TIMEOUT = "25" | |
| python "$PSScriptRoot\app.py" | |