ready-to-submit / frontend /index.html
marinarosa's picture
Use a writable runtime HF cache; drop preload_from_hub
b7281ef
Raw
History Blame Contribute Delete
4.12 kB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Ready to Submit? · Build Small</title>
<meta name="description" content="Is your Build Small hackathon Space ready to submit? Grounded rule checks plus a friendly small-model review." />
<link rel="preload" href="/static/fonts/archivo-var.woff2" as="font" type="font/woff2" crossorigin />
<link rel="preload" href="/static/fonts/spline-sans-mono-var.woff2" as="font" type="font/woff2" crossorigin />
<link rel="stylesheet" href="/static/styles.css" />
<script src="/static/vendor/htmx.min.js"></script>
</head>
<body>
<div class="page">
<header class="hero">
<span class="hero__stamp" aria-hidden="true">
<svg viewBox="0 0 132 132" width="84" height="84">
<circle cx="66" cy="66" r="63" class="hero__disc" />
<circle cx="66" cy="66" r="63" fill="none" class="hero__ring" stroke-width="2.5" stroke-dasharray="2.5 6" stroke-linecap="round" />
<circle cx="66" cy="66" r="50" fill="none" class="hero__inner" stroke-width="1.5" />
<g transform="translate(48 48) scale(1.5)">
<path d="M20 6 9 17l-5-5" fill="none" stroke="var(--paper)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
</g>
</svg>
</span>
<div>
<span class="eyebrow">build small hackathon · deadline june 15</span>
<h1 class="display">Ready to Submit?</h1>
<p class="hero__lede">
Point it at your Space in the <code>build-small-hackathon</code> org and find out,
gently, whether it&rsquo;s ready to submit — rules, tracks, badges and all.
Grounded in the <a href="https://build-small-hackathon-field-guide.hf.space/" target="_blank" rel="noopener">official field guide</a>.
</p>
</div>
</header>
<section class="card card--form">
<form id="check-form"
hx-post="/ui/check"
hx-target="#results"
hx-swap="innerHTML"
hx-indicator="#loading">
<div class="form__row">
<label class="field">
<span class="field__label">reviewer model</span>
<select name="model" id="model-select">
<option value="nvidia/NVIDIA-Nemotron-3-Nano-4B-BF16" selected>NVIDIA · Nemotron 3 Nano 4B</option>
<option value="JetBrains/Mellum2-12B-A2.5B-Instruct">JetBrains · Mellum 2 12B</option>
<option value="openbmb/MiniCPM5-1B">OpenBMB · MiniCPM5 1B</option>
</select>
</label>
<label class="field field--grow">
<span class="field__label">your space</span>
<!-- hx-target="this" is required: without it the select inherits
the form's hx-target="#results" and the options land there -->
<select name="space" id="space-select"
hx-get="/ui/spaces" hx-trigger="load"
hx-target="this" hx-swap="innerHTML">
<option value="">loading the org&hellip;</option>
</select>
</label>
<button type="submit" class="btn">Check Submission</button>
</div>
<p class="form__hint">or paste a space name / URL:
<input type="text" name="space_text" id="space-text" placeholder="e.g. jawbreaker" spellcheck="false" />
</p>
</form>
</section>
<div id="loading" class="loading" aria-live="polite">
<span class="loading__stamp"></span>
<p>walking the trail, checking the markers&hellip;</p>
</div>
<main id="results" aria-live="polite"></main>
<footer class="footer">
<p>
made with small models for the <a href="https://build-small-hackathon-field-guide.hf.space/" target="_blank" rel="noopener">build small hackathon</a>
· automated + AI evaluation — <strong>always double-check</strong> before submitting
· runs on zero gpu
</p>
</footer>
</div>
<script type="module" src="/static/bridge.js"></script>
</body>
</html>