Spaces:
Running
Running
Cap hosted runs at 200 rows; offer 25, 50, 100, 200
Browse filesFiles changed (3)
- README.md+1-1
- app/main.py+1-1
- static/app.js+3-3
28 unmodified lines29303132333428 unmodified linescd app && HF_TOKEN=hf_... uvicorn main:app --port 7860```Settings: `MAX_ROWS` (default 1000), `MAX_RUNNING` (default 2), `HF_TOKEN` (used only for the Hugging Face router).Not affiliated with Adaption Labs.28 unmodified lines29303132333428 unmodified linescd app && HF_TOKEN=hf_... uvicorn main:app --port 7860```Settings: `MAX_ROWS` (default 200), `MAX_RUNNING` (default 2), `HF_TOKEN` (used only for the Hugging Face router).Not affiliated with Adaption Labs.
18 unmodified lines1920212223242518 unmodified linesROOT = Path(__file__).resolve().parent.parentSTATIC = ROOT / "static"MAX_ROWS = int(os.environ.get("MAX_ROWS", "1000"))MAX_RUNNING = int(os.environ.get("MAX_RUNNING", "2"))SERVER_KEY = os.environ.get("HF_TOKEN", "")18 unmodified lines1920212223242518 unmodified linesROOT = Path(__file__).resolve().parent.parentSTATIC = ROOT / "static"MAX_ROWS = int(os.environ.get("MAX_ROWS", "200"))MAX_RUNNING = int(os.environ.get("MAX_RUNNING", "2"))SERVER_KEY = os.environ.get("HF_TOKEN", "")
14 unmodified lines15161718192021222385 unmodified lines10911011111211311411514 unmodified lines};const S = {step: 0, maxStep: 0, format: "instruction", domains: [], subs: {}, languages: ["English"], request: "", constraints: "", rows: 100,blueprint: null, bpBusy: false, bpError: "", engine: { base_url: PRESETS.hf.base_url, model: PRESETS.hf.model, api_key: "", disable_thinking: true, workers: 4 },preset: "hf", ping: null, pinging: false, job: null, jobRows: [], jobState: null, drawn: 0, printed: 0, hosted: false, maxRows: 1000, domainData: [], runError: "",};const $ = (s, el = document) => el.querySelector(s);const esc = (t) => String(t ?? "").replace(/[&<>"']/g, (c) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }[c]));85 unmodified lines<label class="f"><span>Rules every row must follow <span class="hint">(optional)</span></span><textarea class="in" id="constraints" style="min-height:76px" placeholder="Replies must be under 120 words. Use plain text, no markdown.">${esc(S.constraints)}</textarea></label><div class="group"><h3>How many rows?</h3><div class="seg" role="group" aria-label="Rows">${[25, 100, 250, 500, 1000].filter((n) => n <= S.maxRows).map((n) => `<button data-rows="${n}" aria-pressed="${S.rows === n}">${n.toLocaleString()}</button>`).join("")}</div><p class="hint" style="margin-top:8px">Hosted runs are capped at ${S.maxRows.toLocaleString()} rows. Run it yourself for more.</p></div><div class="group"><h3>Blueprint</h3><p class="hint">A plan for coverage: topics, who asks, who answers, and the shapes questions take. Preview it before you spend model calls on rows.</p>14 unmodified lines15161718192021222385 unmodified lines10911011111211311411514 unmodified lines};const S = {step: 0, maxStep: 0, format: "instruction", domains: [], subs: {}, languages: ["English"], request: "", constraints: "", rows: 50,blueprint: null, bpBusy: false, bpError: "", engine: { base_url: PRESETS.hf.base_url, model: PRESETS.hf.model, api_key: "", disable_thinking: true, workers: 4 },preset: "hf", ping: null, pinging: false, job: null, jobRows: [], jobState: null, drawn: 0, printed: 0, hosted: false, maxRows: 200, domainData: [], runError: "",};const $ = (s, el = document) => el.querySelector(s);const esc = (t) => String(t ?? "").replace(/[&<>"']/g, (c) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }[c]));85 unmodified lines<label class="f"><span>Rules every row must follow <span class="hint">(optional)</span></span><textarea class="in" id="constraints" style="min-height:76px" placeholder="Replies must be under 120 words. Use plain text, no markdown.">${esc(S.constraints)}</textarea></label><div class="group"><h3>How many rows?</h3><div class="seg" role="group" aria-label="Rows">${[25, 50, 100, 200].filter((n) => n <= S.maxRows).map((n) => `<button data-rows="${n}" aria-pressed="${S.rows === n}">${n.toLocaleString()}</button>`).join("")}</div><p class="hint" style="margin-top:8px">Hosted runs are capped at ${S.maxRows.toLocaleString()} rows. Run it yourself for more.</p></div><div class="group"><h3>Blueprint</h3><p class="hint">A plan for coverage: topics, who asks, who answers, and the shapes questions take. Preview it before you spend model calls on rows.</p>
README.md+1-1
app/main.py+1-1
static/app.js+3-3