Spaces:
Running on Zero

File size: 11,137 Bytes
5a19b4e
 
 
5c58a52
5a19b4e
5c58a52
5a19b4e
 
 
 
 
 
 
 
e605e7b
5a19b4e
 
 
 
 
cef8d49
 
5a19b4e
cef8d49
 
 
 
 
 
5a19b4e
cef8d49
 
5a19b4e
 
 
 
cef8d49
5a19b4e
1763916
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cc06acc
1763916
 
 
 
5a19b4e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cef8d49
5a19b4e
 
 
 
cef8d49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5a19b4e
 
 
 
cef8d49
 
 
5a19b4e
 
 
 
 
 
 
cef8d49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5a19b4e
 
1763916
5a19b4e
 
 
 
 
 
 
 
cef8d49
5a19b4e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cef8d49
5a19b4e
 
 
 
5c58a52
5a19b4e
 
5c58a52
 
 
5a19b4e
 
 
 
 
 
5c58a52
5a19b4e
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<div id="tempora-root">
<header class="nav">
    <div class="frame nav-in">
      <a class="brand" href="#top" aria-label="Tempora-1">
        <span class="brand-mark" aria-hidden="true"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></span>
        <span class="brand-name">TEMPORA<span class="dim">-1</span></span>
      </a>
      <nav class="nav-links">
        <a href="#demo">Demo</a>
        <a href="#how">How it works</a>
        <a href="#bench">Benchmark</a>
      </nav>
      <div class="nav-right">
        <span class="tag tag-line">Private preview</span>
        <a class="btn btn-ink btn-sm" href="https://huggingface.co/ambient-intelligence-labs/tempora-1" target="_blank" rel="noopener">Model card ↗</a>
      </div>
    </div>
  </header>

  <main id="top">
    <!-- ============ INTRO (compact, so the demo is on the first screen) ============ -->
    <section class="intro">
      <div class="pixels pixels-r" data-pixels="right" aria-hidden="true"></div>
      <div class="frame intro-in">
        <div class="intro-text">
          <h1>Segment any video with one instruction.</h1>
          <p class="lede">Give <b>Tempora-1</b> a video and a sentence about what counts as a segment. It returns ordered JSON
            segments with start and end times, a short label, and any fields you ask it to fill.<span class="lede-more"> One
            model for general video and robotics: an open 27B vision-language model, fine-tuned from Qwen3.8-27B.</span></p>
        </div>
        <p class="claim">Ahead of Gemini 4 Neon, 4 Hydrogen and 3.8 Flash on WGO-Bench. <b>At least 17× cheaper</b> than the
          closest API model. <a href="#bench">Benchmark ↓</a></p>
      </div>
    </section>

    <!-- ============ DEMO ============ -->
    <section class="sec demo" id="demo">
      <div class="frame">
        <div class="panel picker">
          <div class="panel-bar">
            <span class="label"><b class="flow-n">1</b> Pick a clip</span>
            <div class="filters" id="filters" role="tablist">
              <button type="button" class="filter on" data-group="all">All</button>
              <button type="button" class="filter" data-group="general">General video</button>
              <button type="button" class="filter" data-group="robot">Robot</button>
              <button type="button" class="filter" data-group="ego">First person</button>
            </div>
          </div>
          <div class="gallery" id="gallery">
          <label class="card upload" id="upload-card">
            <input type="file" id="file" accept="video/*" hidden />
            <span class="upload-plus" aria-hidden="true">+</span>
            <span class="card-title">Upload a video</span>
            <span class="card-meta">MP4 · up to 200 MB</span>
            <span class="card-meta upload-tip">Best under 3 min. Longer clips are sampled more sparsely (540 frames max).</span>
          </label>
        </div>
        </div>

        <div class="bench">
          <!-- left: player -->
          <div class="panel player-panel">
            <div class="panel-bar">
              <span class="label" id="src-label">Example</span>
              <span class="mono dim" id="src-meta"></span>
            </div>
            <div class="video-wrap"><video id="video" controls playsinline preload="metadata"></video></div>
            <div class="timeline" id="timeline">
              <div class="track" id="track"></div>
              <div class="ruler" id="ruler"></div>
              <div class="playhead" id="playhead"></div>
            </div>
            <div class="legend" id="legend"></div>
            <div class="now" id="now">
              <div class="now-head mono"><span id="now-idx">—</span><span id="now-time"></span></div>
              <div class="now-label" id="now-label">Play the clip or click a segment.</div>
              <dl class="now-meta" id="now-meta"></dl>
            </div>
            <p class="credit mono" id="credit"></p>
          </div>

          <!-- right: prompt -->
          <form class="panel prompt-panel" id="form" autocomplete="off">
            <div class="panel-bar"><span class="label"><b class="flow-n">3</b> Instruction</span><span class="mono dim">trained format</span></div>
            <div class="field">
              <label for="instruction">Instruction <em>what counts as one chunk</em></label>
              <textarea id="instruction" rows="3" placeholder="e.g. Segment by the steps of the recipe"></textarea>
            </div>
            <details class="more" id="more" open>
              <summary class="label" id="more-sum">More options</summary>
              <div class="field">
                <label for="task">Task <em>optional · what the person or robot is doing</em></label>
                <input id="task" type="text" placeholder="e.g. make a cappuccino" />
              </div>
              <div class="field">
                <label>Metadata fields <em>optional · filled for every chunk</em></label>
                <div class="fields" id="fields"></div>
                <button type="button" class="btn btn-line btn-sm" id="add-field">+ Add field</button>
              </div>
              <div class="field row-between">
                <label class="switch">
                  <input type="checkbox" id="thinking" checked />
                  <span class="switch-box" aria-hidden="true"></span>
                  <span>Thinking <em>release default · better boundaries on long clips</em></span>
                </label>
              </div>
            </details>
            <details class="preview" open>
              <summary class="label">Text sent with the video</summary>
              <pre id="prompt-preview"></pre>
            </details>
            <p class="run-help">Examples open with a saved output. Change the instruction or upload a video, then run it on a
              shared ZeroGPU card (NVIDIA RTX Pro 6000 Blackwell): about half a minute to a few minutes, longer with
              thinking on and for long videos.</p>
            <div class="run-row">
              <button type="submit" class="btn btn-accent" id="run">Run on GPU →</button>
              <span class="mono dim run-note" id="run-note"></span>
            </div>
            <ol class="log mono" id="log" hidden></ol>
          </form>

          <!-- results -->
          <div class="panel results">
            <!-- phones: the instruction behind this output, always visible -->
            <div class="ask" id="ask">
              <div class="ask-head"><span class="label">Instruction</span><button type="button" class="ask-edit" id="ask-edit">Edit ✎</button></div>
              <p class="ask-text" id="ask-text"></p>
              <p class="ask-meta mono" id="ask-meta"></p>
            </div>
            <div class="tabs" role="tablist">
              <span class="label tabs-step"><b class="flow-n">2</b> Output</span>
              <button class="tab on" data-tab="chunks" role="tab">Chunks <span id="n-chunks" class="count"></span></button>
              <button class="tab" data-tab="json" role="tab">JSON</button>
              <button class="tab" data-tab="reasoning" role="tab">Reasoning</button>
              <button class="tab tab-edit" data-tab="edit" role="tab">Edit &amp; run</button>
              <span class="tabs-right mono dim" id="provenance"></span>
            </div>
            <div class="tab-body" data-body="chunks"><div class="table-wrap"><table id="table"></table></div></div>
            <div class="tab-body" data-body="json" hidden><pre id="json"></pre></div>
            <div class="tab-body" data-body="reasoning" hidden><pre id="reasoning"></pre></div>
          </div>
        </div>

      </div>
    </section>

    <!-- ============ HOW ============ -->
    <section class="sec" id="how">
      <div class="frame">
        <div class="sec-head">
          <div>
            <div class="label">[ 01 · How it works ]</div>
            <h2>One video in.<br />Timed JSON out.</h2>
          </div>
          <p class="sec-note">The model sees the video as frames sampled at 3 per second, each tagged with its timestamp,
            and a short text block. It reads time from those tags and answers with chunks in order.</p>
        </div>
        <div class="steps">
          <div class="step">
            <div class="step-n mono">01 / Video</div>
            <div class="step-art frames" aria-hidden="true"><i></i><i></i><i></i><i></i><i></i><i></i><i></i><i></i></div>
            <h3>Sampled at 3 fps</h3>
            <p>Up to 540 frames (three minutes at full rate; longer videos are sampled more sparsely), 64 to 112 visual
              tokens each.</p>
          </div>
          <div class="step">
            <div class="step-n mono">02 / Prompt</div>
<pre class="code">Instruction: segment by finer steps
Task: make a cappuccino
metadata_fields: ["tool_used"]
Return JSON: {"chunks":[{"start":sec,
  "end":sec,"label":...}]}</pre>
            <h3>Instruction, task, fields</h3>
            <p>The instruction says what a chunk is. The task is optional context. Each field you name is filled per
              chunk; a description per field is optional.</p>
          </div>
          <div class="step">
            <div class="step-n mono">03 / Answer</div>
<pre class="code">{"chunks":[
 {"start":0.0,"end":6.4,
  "label":"Grind the beans",
  "metadata":{"tool_used":"grinder"}},
 ...]}</pre>
            <h3>Ordered, timed chunks</h3>
            <p>Times are in seconds. With thinking on, the model reasons first; the answer follows its reasoning.</p>
          </div>
        </div>
      </div>
    </section>

    <!-- ============ BENCHMARK ============ -->
    <section class="sec" id="bench">
      <div class="frame">
        <div class="sec-head">
          <div>
            <div class="label">[ 02 · Benchmark ]</div>
            <h2>WGO-Bench,<br />all 100 episodes.</h2>
          </div>
          <p class="sec-note">Robot and first-person manipulation video, one completed event per segment. Segment F1 counts a
            prediction when it overlaps an annotated segment at IoU 0.75 or more; end-to-end F1 also needs a label judge
            to accept its label. Cost is what each run was billed per hour of video; ours at the base model's list price.</p>
        </div>
        <div class="panel"><div class="table-wrap"><table class="bench-table" id="bench-table"></table></div></div>
        <p class="footnote mono">Each model's best run in each group: where a model was run on both the video and contact
          sheets, the better one is shown. "Contact sheets": the WGO-Bench authors' Refiner setup, timestamped frame
          grids with their prompt. Tempora-1: mean of 3 runs (segment F1 0.505 to 0.512).</p>
      </div>
    </section>
  </main>

  <footer class="foot">
    <div class="frame foot-in">
      <span class="brand-name">TEMPORA<span class="dim">-1</span></span>
      <span class="mono dim">Ambient · private preview · outputs are model predictions and can be wrong</span>
    </div>
  </footer>
</div>