brad-did-something / run_modal.ps1
qFelix's picture
Brad Did Something - Gradio/FastAPI Space on HF
78c0f6e
Raw History Blame Contribute Delete
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"