Spaces:
Running
Running
Download savings.html from switchboardllm/switchboard: direct link, hf CLI and curl.
- Browser
- Download file 5.41 kB
-
https://huggingface.co/spaces/switchboardllm/switchboard/resolve/main/savings.html
- Command line
-
hf download hf://spaces/switchboardllm/switchboard/savings.html
-
curl -L -o savings.html https://huggingface.co/spaces/switchboardllm/switchboard/resolve/main/savings.html
5.41 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Savings Calculator · Switchboard</title> | |
| <meta name="description" content="Paste the prompts your app sends. Switchboard routes each one in your browser and adds up what you'd pay, compared with sending everything to the frontier model."> | |
| <link rel="preconnect" href="https://fonts.googleapis.com"> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
| <link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet"> | |
| <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Ccircle cx=%225%22 cy=%2212%22 r=%223%22 fill=%22%23ea580c%22/%3E%3Ccircle cx=%2219%22 cy=%225%22 r=%222.4%22 fill=%22%23ea580c%22/%3E%3Ccircle cx=%2219%22 cy=%2212%22 r=%222.4%22 fill=%22%23ea580c%22/%3E%3Ccircle cx=%2219%22 cy=%2219%22 r=%222.4%22 fill=%22%23ea580c%22/%3E%3C/svg%3E"> | |
| <link rel="stylesheet" href="style.css?v=14"> | |
| </head> | |
| <body> | |
| <header class="top"> | |
| <div class="top-inner"> | |
| <a class="brand" href="index.html"> | |
| <svg class="brand-mark" viewBox="0 0 24 24" aria-hidden="true"><circle cx="5" cy="12" r="3"/><circle cx="19" cy="5" r="2.4"/><circle cx="19" cy="12" r="2.4"/><circle cx="19" cy="19" r="2.4"/><path d="M8 12c4 0 5-7 8.6-7"/></svg> | |
| Switchboard | |
| </a> | |
| <nav class="nav"> | |
| <a href="index.html#demo">Demo</a> | |
| <a href="index.html#how">How it works</a> | |
| <a href="savings.html" aria-current="page">Savings</a> | |
| <a href="evaluation.html">Evaluation</a> | |
| <a href="index.html#faq">FAQ</a> | |
| </nav> | |
| <a class="btn btn-primary btn-sm" href="#calc">Check my prompts</a> | |
| </div> | |
| </header> | |
| <main> | |
| <section class="band cream sv-hero"> | |
| <div class="wrap narrow center"> | |
| <h1 class="sv-title">What would Switchboard save you?</h1> | |
| <p class="section-lede">Paste the prompts your app actually sends. The router runs in this tab, picks a tier for each one, and adds up two bills. Nothing you paste leaves your device.</p> | |
| </div> | |
| </section> | |
| <section class="band white" id="calc"> | |
| <div class="wrap"> | |
| <div class="demo"> | |
| <label for="prompts" class="field-label">Your prompts, one per line</label> | |
| <textarea id="prompts" rows="9" placeholder="Summarize this support ticket in two sentences Write a SQL query that finds duplicate emails Prove that the square root of 2 is irrational"></textarea> | |
| <div class="sv-tools"> | |
| <label class="chip sv-file">Load a .txt file<input type="file" id="file" accept=".txt,.csv,text/plain" hidden></label> | |
| <button type="button" class="chip" id="examples">Use 40 real test prompts</button> | |
| <span class="sv-count" id="count">0 prompts</span> | |
| </div> | |
| <div class="sv-opts"> | |
| <label for="tokens" class="field-label">Average answer length</label> | |
| <div class="sv-inline"><input id="tokens" type="number" min="1" max="100000" step="50" value="500"><span>output tokens per answer</span></div> | |
| </div> | |
| <div class="demo-actions"> | |
| <button type="button" id="run" class="btn btn-primary">Route my prompts</button> | |
| <button type="button" id="stop" class="btn btn-ghost" hidden>Stop</button> | |
| <p id="status" class="status" role="status" aria-live="polite">The first run downloads the router once (660 MB, or 710 MB without WebGPU). Up to 200 prompts per run.</p> | |
| </div> | |
| <div class="meter" id="meter" hidden><span id="meter-fill"></span></div> | |
| </div> | |
| <div class="sv-results" id="results" hidden> | |
| <div class="sv-summary"> | |
| <aside class="bill" aria-labelledby="sv-bill-title"> | |
| <h3 id="sv-bill-title">Your <span id="sv-n"></span> prompts, two bills</h3> | |
| <p id="sv-assume"></p> | |
| <div class="bill-row"><span id="sv-all-label"></span><b id="sv-all"></b><span class="bill-bar"><i style="width:100%"></i></span></div> | |
| <div class="bill-row ours"><span>With Switchboard picking the model</span><b id="sv-routed"></b><span class="bill-bar"><i id="sv-routed-bar" style="width:0%"></i></span></div> | |
| </aside> | |
| <div class="sv-saved"> | |
| <p class="sv-big" id="sv-pct"></p> | |
| <p class="sv-sub" id="sv-sub"></p> | |
| <div class="sv-mix" id="sv-mix" aria-label="Share of prompts per tier"></div> | |
| <ul class="sv-legend" id="sv-legend"></ul> | |
| </div> | |
| </div> | |
| <div class="sv-table-head"> | |
| <h3>Every decision</h3> | |
| <button type="button" class="btn btn-ghost btn-sm" id="csv">Download CSV</button> | |
| </div> | |
| <div class="sv-table-wrap"> | |
| <table class="sv-table"> | |
| <thead><tr><th>#</th><th>Prompt</th><th>Tier</th><th>Model</th></tr></thead> | |
| <tbody id="rows"></tbody> | |
| </table> | |
| </div> | |
| <p class="fineprint" id="sv-fine"></p> | |
| </div> | |
| </div> | |
| </section> | |
| </main> | |
| <script type="module" src="savings.js?v=3"></script> | |
| </body> | |
| </html> | |