Spaces:
Running on Zero

gpwm-simulation / web /viewer.html
robertren1's picture
Drop anything: the Gradio app
c4ac8d1 verified
Raw History Blame Contribute Delete
3.22 kB
<div class="da">
<header class="da-top">
<div class="da-brand">
<h1 class="da-title">GPWM Simulation</h1>
<p class="da-sub">Drop and drag objects made from photos. A generative particle world model predicts the next 2 seconds.</p>
</div>
<div class="da-how">
<ol class="da-steps" aria-label="How to use it">
<li><span class="da-num">1</span>Pick an object</li>
<li><span class="da-num">2</span>Click the table to drop it</li>
<li><span class="da-num">3</span>Press Run</li>
</ol>
<p class="da-alt">Drag an object on the table to pull it.</p>
</div>
</header>
<div class="da-main">
<div class="da-stage">
<canvas class="da-canvas" aria-label="A table where objects made from photos are dropped and dragged; a learned particle world model predicts what they do"></canvas>
<div class="da-pill da-status" hidden></div>
<div class="da-pill da-busy" hidden><span class="da-spin" aria-hidden="true"></span><span class="da-busy-text">Predicting 2 s…</span></div>
<div class="da-pill da-keys">Drag the background to turn · Scroll to zoom</div>
<div class="da-hint">Loading the 3D view…</div>
</div>
<aside class="da-panel">
<section class="da-card da-runcard">
<div class="da-runrow">
<button class="da-btn da-primary da-run" type="button" disabled><svg viewBox="0 0 12 12" width="12" height="12" aria-hidden="true"><path d="M3 1.6v8.8L10.4 6z" fill="currentColor"/></svg>Run 2 s</button>
<button class="da-btn da-replay" type="button" disabled>Replay</button>
</div>
<div class="da-pendrow"><span class="da-pending">Nothing waiting.</span><button class="da-link da-clearp" type="button" hidden>Clear</button></div>
<div class="da-row da-more">
<button class="da-btn da-rain" type="button">Drop 5 random</button>
<button class="da-btn da-reset" type="button">Clear table</button>
<button class="da-btn da-check" type="button" hidden>Check the model</button>
</div>
</section>
<section class="da-card da-sel" hidden>
<h2 class="da-sel-title"></h2>
<div class="da-field"><span class="da-label">Material</span><div class="da-row da-mats"></div></div>
<div class="da-field"><span class="da-label">Stiffness</span><div class="da-row da-stiff"></div></div>
<label class="da-field da-height"><span class="da-label">Height</span><input class="da-h" type="range" min="8" max="60" value="30"><span class="da-htext">30 cm</span></label>
<div class="da-row da-sel-actions"></div>
<div class="da-note da-sel-note"></div>
</section>
<section class="da-card da-shelf">
<div class="da-shelf-head"><h2>Objects from photos</h2><span class="da-count"></span></div>
<input class="da-search" type="search" placeholder="Search: ball, jelly, sand, dough…" aria-label="Search the objects">
<div class="da-row da-filters" role="group" aria-label="Show one material"></div>
<div class="da-grid" role="listbox" aria-label="Objects"><div class="da-empty">Loading objects…</div></div>
</section>
</aside>
</div>
</div>