Spaces:
Running on Zero
Running on Zero
Tempora-27b demo Space (ZeroGPU)
Browse filesFiles changed (28)
- .gitattributes+9
- README.md+12-7
- app.pyAdded+229
- build_examples.pyAdded+135
- requirements.txtAdded+7
- static/app.cssAdded+261
- static/app.jsAdded+351
- static/benchmark.jsonAdded+101
- static/examples.jsonAdded+1104
- static/examples/cappuccino.jpgAdded
- static/examples/cappuccino.mp4Added+3
- static/examples/f1_banners.jpgAdded
- static/examples/f1_banners.mp4Added+3
- static/examples/galaxea_011.jpgAdded
- static/examples/galaxea_011.mp4Added+3
- static/examples/galaxea_047.jpgAdded
- static/examples/galaxea_047.mp4Added+3
- static/examples/homer_59.jpgAdded
- static/examples/homer_59.mp4Added+3
- static/examples/homer_60.jpgAdded
- static/examples/homer_60.mp4Added+3
- static/examples/ncaa_1963.jpgAdded
- static/examples/ncaa_1963.mp4Added+3
- static/examples/robointer_droid_000037.jpgAdded
- static/examples/robointer_droid_000037.mp4Added+3
- static/examples/talk.jpgAdded
- static/examples/talk.mp4Added+3
- static/page.htmlAdded+212
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines33343536373839404142434432 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textstatic/examples/cappuccino.mp4 filter=lfs diff=lfs merge=lfs -textstatic/examples/f1_banners.mp4 filter=lfs diff=lfs merge=lfs -textstatic/examples/galaxea_011.mp4 filter=lfs diff=lfs merge=lfs -textstatic/examples/galaxea_047.mp4 filter=lfs diff=lfs merge=lfs -textstatic/examples/homer_59.mp4 filter=lfs diff=lfs merge=lfs -textstatic/examples/homer_60.mp4 filter=lfs diff=lfs merge=lfs -textstatic/examples/ncaa_1963.mp4 filter=lfs diff=lfs merge=lfs -textstatic/examples/robointer_droid_000037.mp4 filter=lfs diff=lfs merge=lfs -textstatic/examples/talk.mp4 filter=lfs diff=lfs merge=lfs -text
12345678910111213---title: Tempora 27bemoji: 💻colorFrom: graycolorTo: pinksdk: gradiosdk_version: 6.32.0python_version: '3.13'app_file: app.pypinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference123456789101112131415161718---title: Tempora-27bemoji: ⏱️colorFrom: redcolorTo: yellowsdk: gradiosdk_version: 6.31.0python_version: "3.12"app_file: app.pypinned: falseshort_description: Instruction-conditioned video segmentation (27B)---# Tempora-27bGive the model a video and an instruction; it returns timed JSON chunks with labels and any metadata fields you name.Runs the private checkpoint `infinitylogesh/tempora-27b` on ZeroGPU with the release inference settings (3 fps, atmost 540 frames, 64 to 112 visual tokens per frame, greedy decoding).
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229"""tempora-27b demo Space (ZeroGPU).
The page (static/page.html, app.css, app.js) is plain HTML rendered inside Gradio; it calls the queued Gradio endpoint`/segment` through the Gradio JS client. The model is the private checkpoint infinitylogesh/tempora-27b, loaded withtransformers. Video goes through qwen-vl-utils with the settings the model was trained and evaluated with(3 fps, at most 540 frames, 64 to 112 visual tokens per frame), and decoding is greedy, as in the release repo'soffline inference.
HF_TOKEN Space secret with read access to the model repo TEMPORA_MOCK=1 local UI work without a GPU: replays the saved example outputs"""import jsonimport osimport threadingimport time
import gradio as gr
HERE = os.path.dirname(os.path.abspath(__file__))STATIC = os.path.join(HERE, "static")MODEL_ID = os.environ.get("TEMPORA_MODEL", "infinitylogesh/tempora-27b")MOCK = os.environ.get("TEMPORA_MOCK") == "1"MAX_NEW_TOKENS = {True: 8192, False: 3072} # thinking on / off (offline eval: 32768 / 3072; WGO median ~400)RETURN_LINE = 'Return JSON: {"chunks":[{"start":sec,"end":sec,"label":...}]}'CORE = {"start", "end", "label", "metadata"}EXAMPLES = {e["id"]: e for e in json.load(open(os.path.join(STATIC, "examples.json")))}
# ---------------------------------------------------------------- video sampling (release VideoConfig)os.environ.setdefault("FORCE_QWENVL_VIDEO_READER", "torchcodec")if not MOCK: import spaces import torch from qwen_vl_utils import process_vision_info, vision_process from transformers import AutoModelForImageTextToText, AutoProcessor, TextIteratorStreamer
vision_process.FORCE_QWENVL_VIDEO_READER = "torchcodec" vision_process.get_video_reader_backend.cache_clear() vision_process.FPS, vision_process.FPS_MAX_FRAMES = 3.0, 540 vision_process.VIDEO_MAX_TOKEN_NUM, vision_process.VIDEO_MIN_TOKEN_NUM = 112, 64
TOKEN = os.environ.get("HF_TOKEN") processor = AutoProcessor.from_pretrained(MODEL_ID, token=TOKEN) model = AutoModelForImageTextToText.from_pretrained(MODEL_ID, token=TOKEN, dtype=torch.bfloat16).to("cuda") model.eval()
def build_prompt(instruction="", task="", fields=(), field_descriptions=None): """The trained prompt format (release repo: video_chunker.prompt.build_prompt).""" instruction, task, fields = instruction.strip(), task.strip(), list(fields) lines = [] if instruction: lines.append(f"Instruction:\n{instruction}" if "\n" in instruction else f"Instruction: {instruction}") if task: lines.append(f"Task: {task}") if instruction or fields: lines.append("metadata_fields: " + json.dumps(fields)) if field_descriptions: lines.append("metadata_fields_description: " + json.dumps(list(field_descriptions))) lines.append(RETURN_LINE) return "\n".join(lines)
def extract_chunks(text): """The outermost {"chunks": [...]} object (or a bare list) in the answer; None if there is none.""" s = (text or "").strip() if s.startswith("```"): s = s.split("\n", 1)[-1].rsplit("```", 1)[0] dec = json.JSONDecoder() for i, ch in enumerate(s): if ch not in "{[": continue try: obj, _ = dec.raw_decode(s[i:]) except json.JSONDecodeError: continue chunks = obj.get("chunks") if isinstance(obj, dict) else obj if isinstance(chunks, list) and all(isinstance(c, dict) and "start" in c and "end" in c for c in chunks): rows = [] for c in chunks: meta = dict(c.get("metadata") or {}) if isinstance(c.get("metadata"), dict) else {} meta.update({k: v for k, v in c.items() if k not in CORE}) try: rows.append({"start": float(c["start"]), "end": float(c["end"]), "label": str(c.get("label", "")), "metadata": meta}) except (TypeError, ValueError): continue return rows return None
def msg(**kw): return json.dumps(kw, ensure_ascii=False)
# ---------------------------------------------------------------- model calldef _gpu_seconds(inputs, thinking, n_frames): return 210 if thinking else 120
if not MOCK: @spaces.GPU(duration=_gpu_seconds) def generate(inputs, thinking, n_frames): """Greedy generation on the GPU, streaming text as it is produced.""" batch = {k: (v.to("cuda") if hasattr(v, "to") else v) for k, v in inputs.items()} streamer = TextIteratorStreamer(processor.tokenizer, skip_prompt=True, skip_special_tokens=True) out = {}
def run(): with torch.inference_mode(): ids = model.generate(**batch, max_new_tokens=MAX_NEW_TOKENS[thinking], do_sample=False, temperature=None, top_p=None, top_k=None, streamer=streamer) out["n"] = int(ids.shape[1] - batch["input_ids"].shape[1])
t = threading.Thread(target=run) t.start() for piece in streamer: yield piece, None t.join() yield "", out.get("n")
def segment(video, example, instruction, task, fields, thinking): """Gradio endpoint /segment. Streams JSON messages: stage updates, partial text, then the result.""" t0 = time.time() thinking = bool(thinking) try: rows = [f for f in json.loads(fields or "[]") if str(f.get("name", "")).strip()] except (json.JSONDecodeError, AttributeError): raise gr.Error("Metadata fields must be a list of {name, description}.") names = [str(f["name"]).strip() for f in rows] descs = [str(f.get("description", "")).strip() for f in rows] if not (instruction or "").strip() and not names: raise gr.Error("Write an instruction (and optionally a task or fields).") prompt = build_prompt(instruction or "", task or "", names, descs if any(descs) else None) if example: if example not in EXAMPLES: raise gr.Error("Unknown example.") path = os.path.join(STATIC, EXAMPLES[example]["src"]) elif video: path = video if isinstance(video, str) else getattr(video, "name", None) or video.get("path") else: raise gr.Error("Choose an example or upload a video.") yield msg(stage="decoding", prompt=prompt, thinking=thinking)
if MOCK: # replay a saved output so the page can be built without a GPU ex = EXAMPLES.get(example) or next(iter(EXAMPLES.values())) res = ex["result"] text = (("<think>\n" + res["reasoning"] + "\n</think>\n\n") if thinking and res.get("reasoning") else "") \ + (res.get("raw") or "") yield msg(stage="generating", frames=120, duration=ex["duration"], input_tokens=0) acc = "" for i in range(0, len(text), 40): acc += text[i:i + 40] time.sleep(0.01) yield msg(stage="generating", partial=acc) answer = res.get("raw") or "" yield msg(stage="done", prompt=prompt, thinking=thinking, raw=answer, reasoning=res.get("reasoning"), chunks=extract_chunks(answer), stats={"mock": True, "seconds": round(time.time() - t0, 1)}) return
msgs = [{"role": "user", "content": [{"type": "video", "video": path}, {"type": "text", "text": prompt}]}] try: text = processor.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True, enable_thinking=thinking) _, videos, _ = process_vision_info(msgs, image_patch_size=16, return_video_kwargs=True, return_video_metadata=True) except Exception as e: # noqa: BLE001 raise gr.Error(f"Could not read this video ({type(e).__name__}). Try an H.264 .mp4.") frames, meta = videos[0] inputs = processor(text=[text], videos=[frames], video_metadata=[meta], do_sample_frames=False, do_resize=False, return_tensors="pt") n_frames = int(frames.shape[0]) dur = float(meta.get("total_num_frames", 0)) / float(meta.get("fps", 1) or 1) n_in = int(inputs["input_ids"].shape[1]) yield msg(stage="queued", frames=n_frames, duration=round(dur, 1), input_tokens=n_in, frame_hw=[int(frames.shape[2]), int(frames.shape[3])], decode_s=round(time.time() - t0, 1))
acc, n_out, t1, last = "", None, None, 0.0 for piece, n in generate(dict(inputs), thinking, n_frames): if t1 is None: t1 = time.time() yield msg(stage="generating") if n is not None: n_out = n acc += piece if time.time() - last > 0.25: last = time.time() yield msg(stage="generating", partial=acc) reasoning, answer = None, acc.strip() if thinking: # no closing tag = the reasoning used the whole budget = no answer head, sep, tail = acc.partition("</think>") reasoning, answer = head.replace("<think>", "").strip(), (tail.strip() if sep else "") chunks = extract_chunks(answer) yield msg(stage="done", prompt=prompt, thinking=thinking, raw=answer, reasoning=reasoning, chunks=chunks, truncated=thinking and "</think>" not in acc, stats={"frames": n_frames, "duration": round(dur, 1), "input_tokens": n_in, "output_tokens": n_out, "generate_s": round(time.time() - (t1 or time.time()), 1), "seconds": round(time.time() - t0, 1)})
# ---------------------------------------------------------------- pagegr.set_static_paths(paths=[STATIC])PAGE = open(os.path.join(STATIC, "page.html")).read()BASE = "/gradio_api/file=" + STATIC + "/"VER = int(max(os.path.getmtime(os.path.join(STATIC, f)) for f in ("app.css", "app.js", "page.html")))HEAD = f"""<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=Inter+Tight:ital,wght@0,600;0,700;0,800;1,800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet" /><link rel="stylesheet" href="{BASE}app.css?v={VER}" /><script>window.TEMPORA = {{ base: {json.dumps(BASE)}, mock: {json.dumps(MOCK)} }};</script><script type="module" src="{BASE}app.js?v={VER}"></script>"""
with gr.Blocks(title="Tempora-27b", fill_width=True) as demo: gr.HTML(PAGE, elem_id="tempora-host", container=False, padding=False, apply_default_css=False) with gr.Column(visible=False): video_in = gr.File(file_types=["video"]) example_in = gr.Textbox() instruction_in = gr.Textbox() task_in = gr.Textbox() fields_in = gr.Textbox() thinking_in = gr.Checkbox(value=True) out = gr.Textbox() btn = gr.Button() btn.click(segment, [video_in, example_in, instruction_in, task_in, fields_in, thinking_in], out, api_name="segment", concurrency_limit=1)
if __name__ == "__main__": demo.queue(max_size=20).launch(head=HEAD, allowed_paths=[STATIC], show_error=True)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135"""Build the Space's example gallery: videos + posters under static/examples/, metadata in static/examples.json.
Videos are the blog's web encodes (ambient-website public/assets/blog/video-chunker). Outputs: - WGO-Bench clips: the released run 1 of video-chunker-27b (thinking on, PPT prompt), from the release repo. - other clips: example_outputs/<id>.json when present (written by run_examples.py through the live backend, release config); otherwise the blog draft's output, marked as an earlier run.
python3 app/space/build_examples.py --site ../ambient-website/site --release ../video-chunker-27b"""import argparseimport jsonimport osimport shutilimport subprocessimport sys
HERE = os.path.dirname(os.path.abspath(__file__))OUT = os.path.join(HERE, "static", "examples")CORE = {"start", "end", "label", "metadata"}
PICK_PLACE = "Separate segments for picking up and for placing each object."GENERAL = [ # id, data.json key, file, tag, title, instruction, fields [(name, description)], poster t, credit ("steps", "steps", "cappuccino.mp4", "Procedure", "Recipe steps from a coffee tutorial", "segment by finer steps", [("detailed_step_instruction", "")], 20.0, "Video: 'How to make a cappuccino', Pact Coffee."), ("ads", "ads", "f1_banners.mp4", "Sports", "Trackside brand banners in race highlights", "segment only sections where you see brand advertisement or banner at the trackside", [("brand_name", ""), ("placement", "")], 30.0, "Footage: F1 race highlights."), ("crowd", "crowd", "ncaa_1963.mp4", "Archival", "Audience cutaways in a 1963 newsreel", "segment only portion where the game play is not shown , only audience or cheerleaders are shown", [("description", "")], 10.0, "Footage: 1963 NCAA Men's Division I Basketball Championship newsreel (Universal International Newsreel)."), ("talk", "talk", "talk.mp4", "Long-form", "Chapters and speakers in a 16-minute talk", "Segment by the talk sections", [("person_speaking", "name of the person speaking"), ("speaker_dress", "detailed description of speaker dress in 10 words"), ("speaker_demography", "detailed description of speaker demography - age, sex and ethiniciy")], 60.0, "Talk: 'Don't build agents, build skills instead', AI Engineer Code Summit."),]WGO = [ # id, file, tag, title, poster t ("galaxea_011", "galaxea_011.mp4", "Robotics", "Dual-arm robot sorting items into two baskets", 4.0), ("homer_59", "homer_59.mp4", "Egocentric", "First-person: books onto a shelf", 12.0), ("homer_60", "homer_60.mp4", "Egocentric", "First-person: putting things back on shelves", 20.0), ("galaxea_047", "galaxea_047.mp4", "Robotics", "Dual-arm robot pouring powder", 5.0), ("robointer_droid_000037", "robointer_droid_000037.mp4", "Robotics", "Single-arm robot, pick and place", 8.0),]WGO_CREDIT = "Clip: WGO-Bench (CC BY-NC-SA 4.0)."
def chunk_rows(chunks): rows = [] for c in chunks: meta = dict(c.get("metadata") or {}) meta.update({k: v for k, v in c.items() if k not in CORE}) rows.append({"start": float(c["start"]), "end": float(c["end"]), "label": str(c.get("label", "")), "metadata": {k: (v[0] if isinstance(v, list) and len(v) == 1 else v) for k, v in meta.items()}}) return rows
def duration(path): p = subprocess.run(["ffprobe", "-v", "error", "-show_entries", "format=duration", "-of", "csv=p=0", path], capture_output=True, text=True, check=True) return round(float(p.stdout.strip()), 2)
def poster(src, t, dst): subprocess.run(["ffmpeg", "-y", "-loglevel", "error", "-ss", str(t), "-i", src, "-frames:v", "1", "-vf", "scale=480:-2", "-q:v", "4", dst], check=True)
def main(): ap = argparse.ArgumentParser() ap.add_argument("--site", required=True) ap.add_argument("--release", required=True) a = ap.parse_args() sys.path.insert(0, os.path.join(a.release, "src")) from video_chunker.parsing import extract_json_chunks from video_chunker.prompt import build_prompt
media = os.path.join(a.site, "public", "assets", "blog", "video-chunker") data = json.load(open(os.path.join(a.site, "src", "content", "blog", "video-chunker-27b", "data.json"))) released = {} for l in open(os.path.join(a.release, "results", "wgo", "video-chunker-27b", "run1", "predictions.jsonl")): r = json.loads(l) released[r["id"]] = r os.makedirs(OUT, exist_ok=True) examples = []
def media_for(eid, fname, t): dst = os.path.join(OUT, fname) if not os.path.exists(dst): shutil.copy(os.path.join(media, fname), dst) jpg = os.path.splitext(fname)[0] + ".jpg" poster(dst, t, os.path.join(OUT, jpg)) return f"examples/{fname}", f"examples/{jpg}", duration(dst)
for eid, key, fname, tag, title, instr, fields, t, credit in GENERAL: src, post, dur = media_for(eid, fname, t) names, descs = [f for f, _ in fields], [d for _, d in fields] prompt = build_prompt(instr, "", names, descs if any(descs) else None) live = os.path.join(HERE, "example_outputs", f"{eid}.json") if os.path.exists(live): res = json.load(open(live)) result = {"chunks": chunk_rows(res["chunks"]), "reasoning": res.get("reasoning"), "raw": res.get("raw"), "thinking": res.get("thinking", True), "provenance": "Release configuration (thinking on), run through this Space's backend."} assert res.get("prompt") == prompt, f"{eid}: saved output was made with a different prompt" else: segs = data[key]["clips"][0]["views"][0]["tracks"][-1]["segs"] chunks = [{"start": s["s"], "end": s["e"], "label": s["l"], "metadata": s.get("m") or {}} for s in segs] result = {"chunks": chunk_rows(chunks), "reasoning": None, "raw": json.dumps({"chunks": chunks}), "thinking": False, "provenance": "Earlier run (thinking off), as in the blog draft. Run it live for the release " "configuration."} examples.append({"id": eid, "tag": tag, "title": title, "src": src, "poster": post, "duration": dur, "instruction": instr, "task": "", "fields": [{"name": n, "description": d} for n, d in fields], "prompt": prompt, "credit": credit, "result": result})
for eid, fname, tag, title, t in WGO: src, post, dur = media_for(eid, fname, t) r = released[eid] task = r["prompt"].split("\nTask: ", 1)[1].split("\n", 1)[0] prompt = build_prompt(PICK_PLACE, task, []) assert prompt == r["prompt"], eid examples.append({"id": eid, "tag": tag, "title": title, "src": src, "poster": post, "duration": dur, "instruction": PICK_PLACE, "task": task, "fields": [], "prompt": prompt, "credit": WGO_CREDIT, "result": {"chunks": chunk_rows(extract_json_chunks(r["output"]) or []), "reasoning": r.get("reasoning"), "raw": r["output"], "thinking": True, "provenance": "Release configuration (thinking on): released WGO-Bench run 1."}}) json.dump(examples, open(os.path.join(HERE, "static", "examples.json"), "w"), indent=1, ensure_ascii=False) for e in examples: print(f"{e['id']:24s} {e['duration']:7.1f}s {len(e['result']['chunks']):3d} chunks {e['result']['provenance'][:40]}")
if __name__ == "__main__": main()1234567transformers==5.20.2accelerateqwen-vl-utils==0.0.14torchvisiontorchcodecavflash-linear-attention==0.6.0123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261/* Tempora-27b Space. Ambient palette and type (ambient-website styles.css), drawn square: hairline frames, mono bracket labels, uppercase display headings. Light only. */:root { --bg: #fdf6f1; --bg-2: #f8ece4; --panel: #ffffff; --panel-2: #fbf1ea; --ink: #1a110d; --ink-panel: #1c100b; --muted: #6b5850; --faint: #9a877e; --hair: rgba(58, 28, 12, 0.16); --hair-2: rgba(58, 28, 12, 0.08); --accent: #ff5a14; --accent-2: #ff7a2e; --accent-soft: #ffe5d8; --on-ink: #fbeee6; --font-display: "Inter Tight", "Inter", system-ui, sans-serif; --font-body: "Inter", system-ui, -apple-system, sans-serif; --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; --maxw: 1240px; color-scheme: light;}* { box-sizing: border-box; border-radius: 0 !important; }html { scroll-behavior: smooth; }body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;}/* page rules, nested under the page root so they outrank Gradio's base styles */#tempora-root { a { color: inherit; } b { font-weight: 600; } .mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.02em; } .dim { color: var(--faint); } .frame { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; border-left: 1px solid var(--hair-2); border-right: 1px solid var(--hair-2); }
/* labels, tags, buttons */ .label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); } .tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; font: 600 0.66rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; } .tag-solid { background: var(--ink); color: var(--on-ink); } .tag-solid::before { content: ""; width: 7px; height: 7px; background: var(--accent); margin-right: 7px; } .tag-plain { border: 1px solid var(--hair); color: var(--muted); border-left: none; } .tag-line { border: 1px solid var(--hair); color: var(--muted); } .btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border: 1px solid var(--ink); font: 600 0.72rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; cursor: pointer; background: transparent; color: var(--ink); transition: background .15s, color .15s; } .btn-sm { height: 30px; padding: 0 12px; font-size: 0.66rem; } .btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; } .btn-accent:hover { background: #e84c09; border-color: #e84c09; } .btn-accent:disabled { background: var(--faint); border-color: var(--faint); cursor: progress; } .btn-ink { background: var(--ink); color: var(--on-ink); } .btn-ink:hover { background: #33221a; } .btn-line:hover { background: var(--ink); color: var(--on-ink); }
/* nav */ .nav { position: sticky; top: 0; z-index: 20; background: rgba(253, 246, 241, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hair); } .nav-in { display: flex; align-items: center; gap: 28px; height: 56px; } .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; } .brand-mark { display: grid; grid-template-columns: repeat(3, 6px); gap: 2px; } .brand-mark i { width: 6px; height: 6px; background: var(--ink); } .brand-mark i:nth-child(1), .brand-mark i:nth-child(5), .brand-mark i:nth-child(9) { background: var(--accent); } .brand-mark i:nth-child(3), .brand-mark i:nth-child(7) { opacity: .25; } .brand-name { font: 800 1rem/1 var(--font-display); letter-spacing: 0.02em; } .brand-name .dim { color: var(--accent); } .nav-links { display: flex; gap: 22px; } .nav-links a { font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--muted); } .nav-links a:hover { color: var(--ink); } .nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
/* hero */ .hero { position: relative; border-bottom: 1px solid var(--hair); overflow: hidden; background-image: linear-gradient(var(--hair-2) 1px, transparent 1px), linear-gradient(90deg, var(--hair-2) 1px, transparent 1px); background-size: 48px 48px; background-position: center top; } .hero-in { position: relative; text-align: center; padding-top: 88px; padding-bottom: 72px; background: linear-gradient(transparent, var(--bg) 92%); } .eyebrow { display: inline-flex; margin-bottom: 26px; } h1 { font: 800 clamp(2.6rem, 6.4vw, 5.2rem)/0.92 var(--font-display); letter-spacing: -0.035em; text-transform: uppercase; margin: 0 auto 26px; max-width: 14ch; } .lede { max-width: 620px; margin: 0 auto 30px; color: var(--muted); font-size: 1.02rem; } .lede b { color: var(--ink); } .cta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; } .specs { display: inline-flex; flex-wrap: wrap; justify-content: center; border: 1px solid var(--hair); background: var(--panel); } .specs span { padding: 8px 14px; font: 500 0.66rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); } .specs span + span { border-left: 1px solid var(--hair); } .pixels { position: absolute; top: 0; width: 300px; height: 260px; overflow: hidden; display: grid; grid-template-columns: repeat(25, 12px); grid-auto-rows: 12px; pointer-events: none; } .pixels-l { left: 0; } .pixels-r { right: 0; direction: rtl; } .pixels i { width: 12px; height: 12px; }
/* stats */ .stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--hair); } .stat { padding: 34px 24px 30px; display: flex; flex-direction: column; gap: 10px; } .stat + .stat { border-left: 1px solid var(--hair-2); } .stat b { font: 800 3rem/0.9 var(--font-display); letter-spacing: -0.04em; } .stat span { font: 0.74rem/1.45 var(--font-mono); color: var(--muted); }
/* sections */ .sec { border-bottom: 1px solid var(--hair); } .sec > .frame { padding-top: 64px; padding-bottom: 72px; } .sec-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: 34px; } h2 { font: 800 clamp(2rem, 4.2vw, 3.3rem)/0.95 var(--font-display); letter-spacing: -0.03em; text-transform: uppercase; margin: 14px 0 0; } h3 { font: 700 1rem/1.25 var(--font-display); margin: 16px 0 6px; } .sec-note { margin: 0; color: var(--muted); font-size: 0.92rem; max-width: 470px; justify-self: end; } .panel { background: var(--panel); border: 1px solid var(--hair); } .panel-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--hair-2); background: var(--panel-2); }
/* gallery */ .gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; } .card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--hair); cursor: pointer; text-align: left; padding: 0; font: inherit; color: inherit; transition: border-color .15s, transform .15s; } .card:hover { border-color: var(--ink); } .card.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); } .card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-2); border-bottom: 1px solid var(--hair-2); } .card .tag { position: absolute; top: 8px; left: 8px; background: var(--panel); border: 1px solid var(--hair); height: 20px; font-size: 0.6rem; } .card.on .tag { background: var(--accent); color: #fff; border-color: var(--accent); } .card-title { display: block; padding: 10px 12px 4px; font: 600 0.82rem/1.3 var(--font-display); } .card-meta { display: block; padding: 0 12px 12px; font: 0.66rem/1 var(--font-mono); color: var(--faint); letter-spacing: 0.04em; } .upload { justify-content: center; align-items: center; text-align: center; border-style: dashed; min-height: 150px; background: transparent; } .upload .card-title, .upload .card-meta { padding-left: 0; padding-right: 0; } .upload-plus { font: 300 2.2rem/1 var(--font-display); color: var(--accent); } .upload.drag { border-color: var(--accent); background: var(--accent-soft); }
/* workbench */ .bench { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; } .video-wrap { background: var(--ink-panel); aspect-ratio: 16 / 9; display: flex; } video { width: 100%; height: 100%; object-fit: contain; display: block; } .timeline { position: relative; margin: 14px 14px 0; } .track { position: relative; height: 44px; background: var(--panel-2); border: 1px solid var(--hair); cursor: pointer; overflow: hidden; } .seg { position: absolute; top: 0; bottom: 0; border-right: 1px solid var(--panel); background: #ead3c5; color: var(--ink); font: 500 0.6rem/1.2 var(--font-mono); padding: 5px 5px 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: background .12s; } .seg:nth-child(even) { background: #f2e1d6; } .seg:hover { background: #dcbca9; } .seg.on { background: var(--accent) !important; color: #fff !important; } .seg.dark { color: var(--on-ink); } .ruler { position: relative; height: 22px; } .ruler span { position: absolute; top: 0; font: 0.6rem/1 var(--font-mono); color: var(--faint); transform: translateX(-50%); padding-top: 7px; } .ruler span::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 5px; background: var(--hair); } .playhead { position: absolute; top: -4px; height: 52px; width: 2px; background: var(--ink); pointer-events: none; left: 0; } .playhead::before { content: ""; position: absolute; top: 0; left: -3px; width: 8px; height: 8px; background: var(--ink); } .legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0 14px; min-height: 4px; } .legend span { display: inline-flex; align-items: center; gap: 6px; font: 0.64rem/1.6 var(--font-mono); color: var(--muted); } .legend i { width: 9px; height: 9px; display: inline-block; } .now { margin: 12px 14px 0; border: 1px solid var(--hair); border-left: 3px solid var(--accent); padding: 12px 14px; min-height: 92px; background: var(--panel); } .now-head { display: flex; justify-content: space-between; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; } .now-label { font: 700 1.12rem/1.3 var(--font-display); margin: 6px 0 2px; } .now-meta { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; margin: 8px 0 0; } .now-meta dt { font: 0.64rem/1.6 var(--font-mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; } .now-meta dd { margin: 0; font-size: 0.84rem; } .credit { margin: 10px 14px 14px; color: var(--faint); font-size: 0.64rem; }
/* prompt form */ .prompt-panel { display: flex; flex-direction: column; } .field { padding: 14px 14px 0; } .field > label:not(.switch), .switch > span:last-child { display: block; font: 600 0.72rem/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 7px; } .field em, .switch em { font-style: normal; font-weight: 400; color: var(--faint); text-transform: none; letter-spacing: 0; margin-left: 4px; } textarea, input[type=text] { width: 100%; border: 1px solid var(--hair); background: var(--bg); padding: 9px 10px; font: 0.88rem/1.45 var(--font-body); color: var(--ink); resize: vertical; } textarea:focus, input[type=text]:focus { outline: none; border-color: var(--ink); background: var(--panel); } .fields { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; } .frow { display: grid; grid-template-columns: 0.8fr 1.2fr 30px; gap: 6px; } .frow input { font-size: 0.8rem; padding: 7px 8px; } .frow input:first-child { font-family: var(--font-mono); } .frow button { border: 1px solid var(--hair); background: transparent; cursor: pointer; color: var(--muted); font-size: 0.9rem; } .frow button:hover { border-color: var(--ink); color: var(--ink); } .switch, .field > label.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; margin: 0; } .switch > span:last-child { margin: 0; } .switch input { position: absolute; opacity: 0; } .switch-box { position: relative; width: 36px; height: 20px; border: 1px solid var(--ink); background: var(--bg); flex: none; } .switch-box::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; background: var(--ink); transition: left .15s; } .switch input:checked + .switch-box { background: var(--accent); border-color: var(--accent); } .switch input:checked + .switch-box::after { left: 19px; background: #fff; } .switch input:focus-visible + .switch-box { outline: 2px solid var(--ink); outline-offset: 2px; } .preview { margin: 14px 14px 0; border: 1px solid var(--hair-2); background: var(--panel-2); } .preview summary { cursor: pointer; padding: 8px 10px; list-style: none; } .preview summary::before { content: "▸ "; } .preview[open] summary::before { content: "▾ "; } .preview pre { margin: 0; padding: 0 10px 10px; font: 0.68rem/1.55 var(--font-mono); white-space: pre-wrap; word-break: break-word; color: var(--ink); } .run-row { display: flex; align-items: center; gap: 12px; padding: 14px; margin-top: auto; flex-wrap: wrap; } .run-note { font-size: 0.66rem; max-width: 260px; } .log { margin: 0 14px 14px; padding: 10px 12px; list-style: none; background: var(--ink-panel); color: var(--on-ink); font-size: 0.68rem; line-height: 1.7; } .log li { display: flex; gap: 10px; } .log li time { color: var(--accent-2); min-width: 46px; } .log li.err { color: #ffb199; } .log li.live::after { content: "▮"; color: var(--accent); animation: blink 1s steps(2) infinite; } @keyframes blink { 50% { opacity: 0; } }
/* results */ .tabs { display: flex; align-items: stretch; border-bottom: 1px solid var(--hair); background: var(--panel-2); } .tab { border: none; border-right: 1px solid var(--hair-2); background: transparent; padding: 0 16px; height: 40px; cursor: pointer; font: 600 0.68rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); } .tab.on { background: var(--panel); color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); } .count { color: var(--accent); margin-left: 4px; } .tabs-right { margin-left: auto; align-self: center; padding: 0 14px; font-size: 0.64rem; text-align: right; } .tab-body pre { margin: 0; padding: 16px; max-height: 480px; overflow: auto; font: 0.72rem/1.6 var(--font-mono); white-space: pre-wrap; word-break: break-word; } .table-wrap { overflow-x: auto; max-height: 520px; overflow-y: auto; } table { width: 100%; border-collapse: collapse; font-size: 0.84rem; font-variant-numeric: tabular-nums; } th { position: sticky; top: 0; background: var(--panel); text-align: left; font: 500 0.64rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 11px 12px; border-bottom: 1px solid var(--hair); white-space: nowrap; } td { padding: 9px 12px; border-bottom: 1px solid var(--hair-2); vertical-align: top; } td.t { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); white-space: nowrap; } #table tbody tr { cursor: pointer; } #table tbody tr:hover { background: var(--panel-2); } #table tbody tr.on { background: var(--accent-soft); } #table tbody tr.on td:first-child { box-shadow: inset 3px 0 0 var(--accent); } .empty { padding: 26px 16px; color: var(--faint); font: 0.74rem var(--font-mono); }
/* how */ .steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--hair); background: var(--panel); } .step { padding: 22px; } .step + .step { border-left: 1px solid var(--hair); } .step-n { color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; } .step p { margin: 0; color: var(--muted); font-size: 0.88rem; } .code { margin: 14px 0 0; padding: 12px; background: var(--ink-panel); color: var(--on-ink); font: 0.68rem/1.6 var(--font-mono); white-space: pre-wrap; min-height: 118px; } .frames { margin-top: 14px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; min-height: 118px; align-content: center; padding: 12px; background: var(--ink-panel); } .frames i { aspect-ratio: 3 / 4; background: linear-gradient(160deg, #6b4a3a, #2a170e); position: relative; } .frames i:nth-child(3n) { background: linear-gradient(160deg, var(--accent), #8a2d05); } .frames i::after { content: attr(data-t); position: absolute; left: 2px; bottom: 2px; font: 0.5rem/1 var(--font-mono); color: var(--on-ink); }
/* benchmark */ .bench-table td.num { font-family: var(--font-mono); font-size: 0.78rem; white-space: nowrap; } .bench-table tr.ours td { background: var(--accent-soft); font-weight: 600; } .bench-table tr.ours td:first-child { box-shadow: inset 3px 0 0 var(--accent); } .bar { display: flex; align-items: center; gap: 8px; min-width: 150px; } .bar i { display: block; height: 8px; background: var(--ink); } .bar.e2e i { background: var(--accent); } .footnote { color: var(--faint); margin: 12px 0 0; font-size: 0.64rem; line-height: 1.6; }
/* footer */ .foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; padding-bottom: 40px; flex-wrap: wrap; }
/* responsive */ @media (max-width: 1080px) { .gallery { grid-template-columns: repeat(3, 1fr); } .bench { grid-template-columns: 1fr; } } @media (max-width: 760px) { .frame { padding: 0 16px; } .nav-links, .nav-right .tag { display: none; } .hero-in { padding-top: 56px; padding-bottom: 48px; } .pixels { width: 96px; height: 200px; opacity: 0.55; } .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: none; } .stat:nth-child(n+3) { border-top: 1px solid var(--hair-2); } .stat b { font-size: 2.2rem; } .sec-head { grid-template-columns: 1fr; gap: 16px; } .sec-note { justify-self: start; } .gallery { grid-template-columns: repeat(2, 1fr); } .steps { grid-template-columns: 1fr; } .step + .step { border-left: none; border-top: 1px solid var(--hair); } .specs span + span { border-left: none; } .specs { flex-direction: column; } .tabs-right { display: none; } }}
/* hosted inside Gradio: drop its chrome and paddings, keep our page edge to edge */html, body, gradio-app, .gradio-container, .main, .wrap, .contain, .app { background: var(--bg) !important; }.gradio-container { max-width: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }.gradio-container > .main, .gradio-container .contain, .gradio-container .column, #tempora-host { padding: 0 !important; gap: 0 !important; }footer:not(.foot) { display: none !important; }#tempora-root { font: 15px/1.55 var(--font-body); color: var(--ink); text-align: left; }#tempora-root h1, #tempora-root h2, #tempora-root h3, #tempora-root p, #tempora-root pre { color: inherit; }#tempora-root img { max-width: 100%; }123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351// Tempora-27b Space page. Talks to the Gradio endpoint /segment through @gradio/client.const CLIENT_URL = "https://cdn.jsdelivr.net/npm/@gradio/client@2.7.2/dist/index.min.js";const BASE = (window.TEMPORA && window.TEMPORA.base) || "";const MAX_MB = 200;const RETURN_LINE = 'Return JSON: {"chunks":[{"start":sec,"end":sec,"label":...}]}';const PALETTE = ["#ff5a14", "#1a110d", "#c79a7f", "#8a3a12", "#f2b38f", "#5e4a40", "#ffd2bd", "#b8592a"];const DARK = new Set(["#ff5a14", "#1a110d", "#8a3a12", "#5e4a40", "#b8592a"]);
const S = { examples: [], src: null, result: null, active: -1, colorBy: null, colors: {}, running: false, client: null };const $ = (id) => document.getElementById(id);const esc = (s) => String(s ?? "").replace(/[&<>"]/g, (c) => ({ "&": "&", "<": "<", ">": ">", '"': """ }[c]));const fmt = (t) => { t = Math.max(0, +t || 0); const m = Math.floor(t / 60), s = t - m * 60; return `${String(m).padStart(2, "0")}:${s.toFixed(1).padStart(4, "0")}`; };const fmtDur = (t) => { t = Math.round(+t || 0); const m = Math.floor(t / 60); return m ? `${m}m ${String(t % 60).padStart(2, "0")}s` : `${t}s`; };
// Python json.dumps for a list of strings (", " separator, non-ASCII escaped), so the preview equals what is sent.function pyDumps(list) { const one = (s) => JSON.stringify(String(s)).replace(/[\u007f-]/g, (c) => "\\u" + c.charCodeAt(0).toString(16).padStart(4, "0")); return "[" + list.map(one).join(", ") + "]";}function buildPrompt(instruction, task, fields, descs) { instruction = instruction.trim(); task = task.trim(); const lines = []; if (instruction) lines.push(instruction.includes("\n") ? `Instruction:\n${instruction}` : `Instruction: ${instruction}`); if (task) lines.push(`Task: ${task}`); if (instruction || fields.length) { lines.push("metadata_fields: " + pyDumps(fields)); if (descs.some(Boolean)) lines.push("metadata_fields_description: " + pyDumps(descs)); } lines.push(RETURN_LINE); return lines.join("\n");}
// ---------------------------------------------------------------- decorationfunction pixels() { document.querySelectorAll("[data-pixels]").forEach((el) => { let seed = el.dataset.pixels === "left" ? 7 : 19; const rnd = () => ((seed = (seed * 16807) % 2147483647) / 2147483647); const cols = 25, rows = 22, out = []; for (let r = 0; r < rows; r++) for (let c = 0; c < cols; c++) { const d = Math.hypot(c / cols, r / rows * 0.9); const p = Math.max(0, 0.85 - d * 1.15); const on = rnd() < p; const accent = on && rnd() < 0.09; out.push(`<i style="background:${on ? (accent ? "var(--accent)" : "rgba(58,28,12," + (0.05 + rnd() * 0.13).toFixed(2) + ")") : "transparent"}"></i>`); } el.innerHTML = out.join(""); }); document.querySelectorAll(".frames i").forEach((el, i) => el.setAttribute("data-t", `${(i / 3).toFixed(1)}s`));}
// ---------------------------------------------------------------- gallery + sourcesfunction renderGallery() { const g = $("gallery"), up = $("upload-card"); g.querySelectorAll(".card.ex").forEach((n) => n.remove()); S.examples.forEach((ex) => { const b = document.createElement("button"); b.type = "button"; b.className = "card ex"; b.dataset.id = ex.id; b.innerHTML = `<img src="${BASE}${ex.poster}" alt="" loading="lazy" /><span class="tag">${esc(ex.tag)}</span> <span class="card-title">${esc(ex.title)}</span><span class="card-meta">${fmtDur(ex.duration)} · ${ex.result.chunks.length} chunks</span>`; b.addEventListener("click", () => selectExample(ex.id)); g.insertBefore(b, up); });}function markCard() { document.querySelectorAll(".card").forEach((c) => c.classList.toggle("on", S.src && ((S.src.kind === "example" && c.dataset.id === S.src.ex.id) || (S.src.kind === "upload" && c.id === "upload-card"))));}function selectExample(id, scroll) { const ex = S.examples.find((e) => e.id === id); if (!ex || S.running) return; if (S.src && S.src.url) URL.revokeObjectURL(S.src.url); S.src = { kind: "example", ex }; $("video").src = BASE + ex.src; $("src-label").textContent = ex.tag; $("src-meta").textContent = `${ex.title} · ${fmtDur(ex.duration)}`; $("credit").textContent = ex.credit || ""; setForm(ex.instruction, ex.task, ex.fields, true); setResult({ ...ex.result, saved: true }); markCard(); if (scroll) $("demo").scrollIntoView({ behavior: "smooth" });}function selectUpload(file) { if (S.running) return; if (!file.type.startsWith("video/") && !/\.(mp4|mov|mkv|webm|avi|m4v)$/i.test(file.name)) return note("That file is not a video.", true); if (file.size > MAX_MB * 2 ** 20) return note(`Video too large (max ${MAX_MB} MB).`, true); if (S.src && S.src.url) URL.revokeObjectURL(S.src.url); const url = URL.createObjectURL(file); S.src = { kind: "upload", file, url }; $("video").src = url; $("src-label").textContent = "Your video"; $("src-meta").textContent = `${file.name} · ${(file.size / 2 ** 20).toFixed(1)} MB`; $("credit").textContent = ""; if (!$("instruction").value.trim()) $("instruction").value = "Segment the video into its main steps"; setResult(null); markCard(); refreshPrompt();}
// ---------------------------------------------------------------- prompt formfunction fieldRow(name = "", desc = "") { const row = document.createElement("div"); row.className = "frow"; row.innerHTML = `<input type="text" placeholder="field_name" value="${esc(name)}" aria-label="Field name" /> <input type="text" placeholder="what it should hold (optional)" value="${esc(desc)}" aria-label="Field description" /> <button type="button" aria-label="Remove field">×</button>`; row.querySelector("button").addEventListener("click", () => { row.remove(); refreshPrompt(); }); row.querySelectorAll("input").forEach((i) => i.addEventListener("input", refreshPrompt)); $("fields").appendChild(row);}function setForm(instruction, task, fields, thinking) { $("instruction").value = instruction || ""; $("task").value = task || ""; $("fields").innerHTML = ""; (fields || []).forEach((f) => fieldRow(f.name, f.description)); $("thinking").checked = thinking !== false; refreshPrompt();}function readForm() { const rows = [...$("fields").querySelectorAll(".frow")].map((r) => { const [n, d] = r.querySelectorAll("input"); return { name: n.value.trim(), description: d.value.trim() }; }).filter((f) => f.name); return { instruction: $("instruction").value, task: $("task").value, fields: rows, thinking: $("thinking").checked };}function refreshPrompt() { const f = readForm(); const p = buildPrompt(f.instruction, f.task, f.fields.map((x) => x.name), f.fields.map((x) => x.description)); $("prompt-preview").textContent = p; let t = ""; if (S.src && S.src.kind === "example" && S.result && S.result.saved) { const same = p === S.src.ex.prompt; t = same ? "Showing the saved output for this prompt. Run to generate it again on the GPU." : "Prompt changed. Run to see the model's answer to it."; } else if (!S.src) t = "Pick an example or upload a video."; if (!S.running) note(t);}function note(t, err) { const n = $("run-note"); n.textContent = t || ""; n.style.color = err ? "#c2410c" : ""; }
// ---------------------------------------------------------------- resultsfunction chooseColorBy(chunks) { const keys = [...new Set(chunks.flatMap((c) => Object.keys(c.metadata || {})))]; for (const k of keys) { const vals = [...new Set(chunks.map((c) => JSON.stringify(c.metadata?.[k] ?? null)))]; if (vals.length >= 2 && vals.length <= 6 && vals.length < chunks.length) return k; } return null;}function valueText(v) { return Array.isArray(v) ? v.join(", ") : (v && typeof v === "object" ? JSON.stringify(v) : String(v ?? "")); }function setResult(res) { S.result = res; S.active = -1; const chunks = (res && res.chunks) || []; S.colorBy = chooseColorBy(chunks); S.colors = {}; if (S.colorBy) { [...new Set(chunks.map((c) => valueText(c.metadata?.[S.colorBy])))].forEach((v, i) => (S.colors[v] = PALETTE[i % PALETTE.length])); } $("n-chunks").textContent = res ? (res.chunks ? res.chunks.length : "0") : ""; $("provenance").textContent = res ? (res.provenance || "") : ""; $("json").textContent = res ? (res.raw ? pretty(res.raw) : "(no answer)") : "Run the model to see its JSON."; $("reasoning").textContent = res ? (res.reasoning || (res.thinking ? "(no reasoning returned)" : "Thinking was off for this output.")) : ""; renderTable(); renderTrack(); renderLegend(); updateNow(); refreshPrompt();}function pretty(raw) { try { return JSON.stringify(JSON.parse(raw), null, 1); } catch { return raw; } }function duration() { const v = $("video"); return (v.duration && isFinite(v.duration)) ? v.duration : (S.src?.ex?.duration || 0); }function renderTrack() { const tr = $("track"); tr.innerHTML = ""; const chunks = S.result?.chunks || [], d = duration(); if (d) chunks.forEach((c, i) => { const el = document.createElement("div"); const col = S.colorBy ? S.colors[valueText(c.metadata?.[S.colorBy])] : null; el.className = "seg" + (col && DARK.has(col) ? " dark" : ""); el.style.left = (100 * Math.max(0, c.start) / d) + "%"; el.style.width = Math.max(0.25, 100 * (Math.min(c.end, d) - Math.max(0, c.start)) / d) + "%"; if (col) el.style.background = col; el.textContent = c.label; el.title = `${fmt(c.start)} → ${fmt(c.end)} ${c.label}`; el.addEventListener("click", (e) => { e.stopPropagation(); seek(c.start + 0.01, i); }); tr.appendChild(el); }); const ru = $("ruler"); ru.innerHTML = ""; if (d) { const step = [1, 2, 5, 10, 15, 30, 60, 120, 300].find((s) => d / s <= 8) || 600; for (let t = 0; t <= d + 1e-6; t += step) ru.insertAdjacentHTML("beforeend", `<span style="left:${100 * t / d}%">${fmt(t).replace(/\.\d$/, "")}</span>`); } movePlayhead();}function renderLegend() { const lg = $("legend"); lg.innerHTML = S.colorBy ? `<span class="label" style="margin-right:4px">${esc(S.colorBy)}</span>` + Object.entries(S.colors).map(([v, c]) => `<span><i style="background:${c}"></i>${esc(v)}</span>`).join("") : "";}function renderTable() { const t = $("table"), chunks = S.result?.chunks; if (!chunks || !chunks.length) { t.innerHTML = `<tbody><tr><td class="empty">${S.result ? (S.result.truncated ? "The reasoning used the whole token budget before answering. Try again with thinking off, or a shorter clip." : "No chunks in this answer. See the JSON tab.") : "No output yet. Run the model on this video."}</td></tr></tbody>`; return; } const keys = [...new Set(chunks.flatMap((c) => Object.keys(c.metadata || {})))]; t.innerHTML = `<thead><tr><th>#</th><th>Start</th><th>End</th><th>Label</th>${keys.map((k) => `<th>${esc(k)}</th>`).join("")}</tr></thead><tbody>` + chunks.map((c, i) => `<tr data-i="${i}"><td class="t">${String(i + 1).padStart(2, "0")}</td><td class="t">${fmt(c.start)}</td><td class="t">${fmt(c.end)}</td><td>${esc(c.label)}</td>${keys.map((k) => `<td>${esc(valueText(c.metadata?.[k]))}</td>`).join("")}</tr>`).join("") + "</tbody>"; t.querySelectorAll("tbody tr").forEach((r) => r.addEventListener("click", () => { const c = chunks[+r.dataset.i]; seek(c.start + 0.01, +r.dataset.i); }));}function seek(t, i) { const v = $("video"); v.currentTime = t; S.active = i ?? S.active; updateNow(); }function activeAt(t) { const cs = S.result?.chunks || []; for (let i = cs.length - 1; i >= 0; i--) if (t >= cs[i].start && t < cs[i].end) return i; return -1; }function movePlayhead() { const d = duration(); $("playhead").style.left = d ? `calc(${100 * $("video").currentTime / d}% - 1px)` : "0"; }function updateNow() { const v = $("video"), cs = S.result?.chunks || []; const i = activeAt(v.currentTime); S.active = i; $("track").querySelectorAll(".seg").forEach((el, k) => el.classList.toggle("on", k === i)); $("table").querySelectorAll("tbody tr[data-i]").forEach((el) => el.classList.toggle("on", +el.dataset.i === i)); if (i < 0) { $("now-idx").textContent = cs.length ? `— / ${cs.length}` : "—"; $("now-time").textContent = fmt(v.currentTime); $("now-label").textContent = cs.length ? "No chunk at this moment." : (S.result ? "No chunks." : "Run the model to see chunks here."); $("now-meta").innerHTML = ""; return; } const c = cs[i]; $("now-idx").textContent = `Chunk ${String(i + 1).padStart(2, "0")} / ${cs.length}`; $("now-time").textContent = `${fmt(c.start)} → ${fmt(c.end)}`; $("now-label").textContent = c.label; $("now-meta").innerHTML = Object.entries(c.metadata || {}).map(([k, val]) => `<dt>${esc(k)}</dt><dd>${esc(valueText(val))}</dd>`).join("");}function tick() { movePlayhead(); const i = activeAt($("video").currentTime); if (i !== S.active) updateNow(); if (!$("video").paused) requestAnimationFrame(tick); }
// ---------------------------------------------------------------- running the modelfunction log(text, cls) { const ol = $("log"); ol.hidden = false; ol.querySelectorAll("li.live").forEach((li) => li.classList.remove("live")); const li = document.createElement("li"); li.className = cls || "live"; li.innerHTML = `<time>${((performance.now() - S.t0) / 1000).toFixed(1)}s</time><span>${esc(text)}</span>`; ol.appendChild(li); return li;}async function client() { if (S.client) return S.client; const { Client, handle_file } = await import(CLIENT_URL); S.handle_file = handle_file; S.client = await Client.connect(window.location.href.split(/[?#]/)[0]); return S.client;}async function run(e) { e.preventDefault(); if (S.running || !S.src) return; const f = readForm(); if (!f.instruction.trim() && !f.fields.length) return note("Write an instruction first.", true); S.running = true; S.t0 = performance.now(); $("run").disabled = true; $("run").textContent = "Running…"; $("log").innerHTML = ""; note(""); log("Connecting"); let live = null, partialLine = null, gotDone = false; try { const c = await client(); const payload = { video: S.src.kind === "upload" ? S.handle_file(S.src.file) : null, example: S.src.kind === "example" ? S.src.ex.id : "", instruction: f.instruction, task: f.task, fields: JSON.stringify(f.fields), thinking: f.thinking, }; if (S.src.kind === "upload") log(`Uploading ${(S.src.file.size / 2 ** 20).toFixed(1)} MB`); const job = c.submit("/segment", payload); let lastStage = ""; for await (const m of job) { if (m.type === "status") { if (m.stage === "pending" && m.queue && m.position != null && lastStage !== "q" + m.position) { lastStage = "q" + m.position; log(m.position > 0 ? `In queue, position ${m.position + 1}` : "Next in queue"); } else if (m.stage === "error") { throw new Error(m.message || "The run failed."); } continue; } if (m.type !== "data") continue; const d = JSON.parse(m.data[0]); if (d.stage === "decoding" && lastStage !== "decoding") { lastStage = "decoding"; log("Sampling frames at 3 fps"); } else if (d.stage === "queued" && lastStage !== "queued") { lastStage = "queued"; log(`${d.frames} frames · ${fmtDur(d.duration)} · ${d.input_tokens.toLocaleString()} input tokens`, ""); live = log("Waiting for a ZeroGPU slot"); } else if (d.stage === "generating") { if (lastStage !== "generating") { lastStage = "generating"; live = log(f.thinking ? "Thinking" : "Generating"); } if (d.partial != null) { const text = d.partial; const thinkingNow = f.thinking && !text.includes("</think>"); if (!partialLine) partialLine = live; partialLine.querySelector("span").textContent = `${thinkingNow ? "Thinking" : "Writing the answer"} · ${text.length.toLocaleString()} characters`; $("reasoning").textContent = text.replace("<think>", "").split("</think>")[0].trim(); if (!thinkingNow) $("json").textContent = text.split("</think>").pop().trim(); } } else if (d.stage === "done") { if (gotDone) continue; // the client repeats the last message when the job completes gotDone = true; const st = d.stats || {}; log(`Done · ${(d.chunks || []).length} chunks${st.output_tokens ? ` · ${st.output_tokens.toLocaleString()} output tokens` : ""} · ${st.seconds ?? ""} s`, ""); setResult({ chunks: d.chunks, raw: d.raw, reasoning: d.reasoning, thinking: d.thinking, truncated: d.truncated, provenance: `Live run · thinking ${d.thinking ? "on" : "off"}${st.mock ? " · mock" : ""}`, saved: false }); if (!d.chunks) tab("json"); } } if (!gotDone) throw new Error("The run ended without an answer."); } catch (err) { log(String(err && err.message || err).slice(0, 300), "err"); note("The run failed. See the log.", true); } finally { S.running = false; $("run").disabled = false; $("run").textContent = "Run on GPU →"; $("log").querySelectorAll("li.live").forEach((li) => li.classList.remove("live")); }}
// ---------------------------------------------------------------- benchmark + tabsasync function renderBench() { const rows = await (await fetch(BASE + "benchmark.json")).json(); const maxF = Math.max(...rows.map((r) => r.seg_f1)); const maxC = Math.max(...rows.map((r) => r.cost || 0)); $("bench-table").innerHTML = `<thead><tr><th>System</th><th>Input</th><th>Segment F1</th><th>End-to-end F1</th><th>$ / video-hour</th></tr></thead><tbody>` + rows.map((r) => `<tr class="${r.ours ? "ours" : ""}"><td>${esc(r.name)}</td><td class="t">${esc(r.input)}</td> <td class="num"><div class="bar"><i style="width:${90 * r.seg_f1 / maxF}px"></i>${r.seg_f1.toFixed(3)}</div></td> <td class="num"><div class="bar e2e"><i style="width:${90 * r.e2e_f1 / maxF}px"></i>${r.e2e_f1.toFixed(3)}</div></td> <td class="num">${r.cost != null ? "$" + r.cost.toFixed(r.cost < 1 ? 3 : 2) : "–"}</td></tr>`).join("") + "</tbody>";}function tab(name) { document.querySelectorAll(".tab").forEach((t) => t.classList.toggle("on", t.dataset.tab === name)); document.querySelectorAll(".tab-body").forEach((b) => (b.hidden = b.dataset.body !== name));}
// ---------------------------------------------------------------- initasync function init() { pixels(); document.querySelectorAll("details.preview").forEach((d) => (d.open = true)); S.examples = await (await fetch(BASE + "examples.json")).json(); renderGallery(); const v = $("video"); v.addEventListener("loadedmetadata", () => { renderTrack(); updateNow(); }); v.addEventListener("play", () => requestAnimationFrame(tick)); v.addEventListener("seeked", () => { movePlayhead(); updateNow(); }); v.addEventListener("timeupdate", () => { movePlayhead(); updateNow(); }); $("track").addEventListener("click", (e) => { const r = $("track").getBoundingClientRect(); seek(duration() * (e.clientX - r.left) / r.width); }); ["instruction", "task", "thinking"].forEach((id) => $(id).addEventListener("input", refreshPrompt)); $("add-field").addEventListener("click", () => { fieldRow(); refreshPrompt(); $("fields").lastChild.querySelector("input").focus(); }); $("form").addEventListener("submit", run); document.querySelectorAll(".tab").forEach((t) => t.addEventListener("click", () => tab(t.dataset.tab))); const card = $("upload-card"), file = $("file"); file.addEventListener("change", () => file.files[0] && selectUpload(file.files[0])); card.addEventListener("dragover", (e) => { e.preventDefault(); card.classList.add("drag"); }); card.addEventListener("dragleave", () => card.classList.remove("drag")); card.addEventListener("drop", (e) => { e.preventDefault(); card.classList.remove("drag"); e.dataTransfer.files[0] && selectUpload(e.dataTransfer.files[0]); }); document.querySelectorAll('a[href="#demo"]').forEach((a) => a.addEventListener("click", () => { if (!S.src) selectExample(S.examples[0].id); })); selectExample(S.examples[0].id); renderBench();}
(function wait() { if (document.getElementById("tempora-root") && document.getElementById("gallery")) init().catch((e) => console.error(e)); else setTimeout(wait, 60);})();123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101[ { "name": "Gemini 4 Carbon, contact sheets + Refiner prompt", "input": "contact sheets", "ours": false, "runs": 1, "seg_f1": 0.547, "e2e_f1": 0.388, "cost": 1.59 }, { "name": "Gemini 4 Carbon (reasoning off)", "input": "video", "ours": false, "runs": 1, "seg_f1": 0.497, "e2e_f1": 0.343, "cost": 0.72 }, { "name": "tempora-27b (thinking on)", "input": "video", "ours": true, "runs": 3, "seg_f1": 0.51, "e2e_f1": 0.325, "cost": 0.094 }, { "name": "Gemini 4 Hydrogen, contact sheets + Refiner prompt", "input": "contact sheets", "ours": false, "runs": 1, "seg_f1": 0.413, "e2e_f1": 0.293, "cost": 3.033 }, { "name": "Gemini 4 Neon (default reasoning)", "input": "video", "ours": false, "runs": 1, "seg_f1": 0.431, "e2e_f1": 0.292, "cost": 3.771 }, { "name": "Gemini 4 Hydrogen (default reasoning)", "input": "video", "ours": false, "runs": 1, "seg_f1": 0.407, "e2e_f1": 0.271, "cost": 1.433 }, { "name": "Elorian Glimpse, contact sheets + Refiner prompt", "input": "contact sheets", "ours": false, "runs": 1, "seg_f1": 0.393, "e2e_f1": 0.239, "cost": 6.97 }, { "name": "Gemini 3.8 Flash, contact sheets + Refiner prompt", "input": "contact sheets", "ours": false, "runs": 1, "seg_f1": 0.369, "e2e_f1": 0.221, "cost": 1.421 }, { "name": "Pegasus 1.6", "input": "video", "ours": false, "runs": 1, "seg_f1": 0.28, "e2e_f1": 0.164, "cost": 1.75 }, { "name": "Gemini 3.8 Flash (default reasoning)", "input": "video", "ours": false, "runs": 1, "seg_f1": 0.279, "e2e_f1": 0.16, "cost": 0.623 }, { "name": "Qwen3.8-27B (base, thinking off)", "input": "video", "ours": false, "runs": 1, "seg_f1": 0.259, "e2e_f1": 0.043, "cost": 0.036 }]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104[ { "id": "steps", "tag": "Procedure", "title": "Recipe steps from a coffee tutorial", "src": "examples/cappuccino.mp4", "poster": "examples/cappuccino.jpg", "duration": 112.0, "instruction": "segment by finer steps", "task": "", "fields": [ { "name": "detailed_step_instruction", "description": "" } ], "prompt": "Instruction: segment by finer steps\nmetadata_fields: [\"detailed_step_instruction\"]\nReturn JSON: {\"chunks\":[{\"start\":sec,\"end\":sec,\"label\":...}]}", "credit": "Video: 'How to make a cappuccino', Pact Coffee.", "result": { "chunks": [ { "start": 6.0, "end": 12.9, "label": "Clean machine and grinder", "metadata": { "detailed_step_instruction": "Wipe down the espresso machine and remove the coffee grinder hopper." } }, { "start": 12.9, "end": 25.4, "label": "Grind coffee", "metadata": { "detailed_step_instruction": "Place the portafilter on the scales and scoop ground coffee into the portafilter." } }, { "start": 25.4, "end": 37.7, "label": "Distribute coffee", "metadata": { "detailed_step_instruction": "Tap the portafilter to distribute the coffee evenly." } }, { "start": 37.7, "end": 40.5, "label": "Tamp coffee", "metadata": { "detailed_step_instruction": "Press down on the coffee with the tamper." } }, { "start": 40.5, "end": 44.2, "label": "Purge espresso machine", "metadata": { "detailed_step_instruction": "Press the button to purge the espresso machine." } }, { "start": 44.2, "end": 46.5, "label": "Insert portafilter", "metadata": { "detailed_step_instruction": "Insert the portafilter into the group head." } }, { "start": 46.5, "end": 49.6, "label": "Prepare cup", "metadata": { "detailed_step_instruction": "Place the cup on the scales under the portafilter." } }, { "start": 49.6, "end": 57.4, "label": "Brew espresso", "metadata": { "detailed_step_instruction": "Press the button to start the water flow." } }, { "start": 57.4, "end": 60.2, "label": "Remove espresso", "metadata": { "detailed_step_instruction": "Remove the espresso from the scales." } }, { "start": 60.2, "end": 62.0, "label": "Remove portafilter", "metadata": { "detailed_step_instruction": "Remove the portafilter from the group head." } }, { "start": 62.0, "end": 65.2, "label": "Purge steam wand", "metadata": { "detailed_step_instruction": "Press the button to purge the steam wand." } }, { "start": 65.2, "end": 68.2, "label": "Prepare milk", "metadata": { "detailed_step_instruction": "Pour milk into the milk jug." } }, { "start": 68.2, "end": 91.6, "label": "Steam milk", "metadata": { "detailed_step_instruction": "Turn on the steam wand and steam the milk." } }, { "start": 91.6, "end": 95.3, "label": "Swirl milk", "metadata": { "detailed_step_instruction": "Tap the milk jug on the counter to remove bubbles." } }, { "start": 95.3, "end": 102.3, "label": "Pour milk", "metadata": { "detailed_step_instruction": "Pour the milk into the espresso." } }, { "start": 102.3, "end": 104.4, "label": "Clean steam wand", "metadata": { "detailed_step_instruction": "Wipe down the steam wand and press the button to purge the steam wand." } }, { "start": 104.4, "end": 109.2, "label": "Serve cappuccino", "metadata": { "detailed_step_instruction": "Place the cappuccino on the wooden board." } } ], "reasoning": null, "raw": "{\"chunks\": [{\"start\": 6.0, \"end\": 12.9, \"label\": \"Clean machine and grinder\", \"metadata\": {\"detailed_step_instruction\": \"Wipe down the espresso machine and remove the coffee grinder hopper.\"}}, {\"start\": 12.9, \"end\": 25.4, \"label\": \"Grind coffee\", \"metadata\": {\"detailed_step_instruction\": \"Place the portafilter on the scales and scoop ground coffee into the portafilter.\"}}, {\"start\": 25.4, \"end\": 37.7, \"label\": \"Distribute coffee\", \"metadata\": {\"detailed_step_instruction\": \"Tap the portafilter to distribute the coffee evenly.\"}}, {\"start\": 37.7, \"end\": 40.5, \"label\": \"Tamp coffee\", \"metadata\": {\"detailed_step_instruction\": \"Press down on the coffee with the tamper.\"}}, {\"start\": 40.5, \"end\": 44.2, \"label\": \"Purge espresso machine\", \"metadata\": {\"detailed_step_instruction\": \"Press the button to purge the espresso machine.\"}}, {\"start\": 44.2, \"end\": 46.5, \"label\": \"Insert portafilter\", \"metadata\": {\"detailed_step_instruction\": \"Insert the portafilter into the group head.\"}}, {\"start\": 46.5, \"end\": 49.6, \"label\": \"Prepare cup\", \"metadata\": {\"detailed_step_instruction\": \"Place the cup on the scales under the portafilter.\"}}, {\"start\": 49.6, \"end\": 57.4, \"label\": \"Brew espresso\", \"metadata\": {\"detailed_step_instruction\": \"Press the button to start the water flow.\"}}, {\"start\": 57.4, \"end\": 60.2, \"label\": \"Remove espresso\", \"metadata\": {\"detailed_step_instruction\": \"Remove the espresso from the scales.\"}}, {\"start\": 60.2, \"end\": 62.0, \"label\": \"Remove portafilter\", \"metadata\": {\"detailed_step_instruction\": \"Remove the portafilter from the group head.\"}}, {\"start\": 62.0, \"end\": 65.2, \"label\": \"Purge steam wand\", \"metadata\": {\"detailed_step_instruction\": \"Press the button to purge the steam wand.\"}}, {\"start\": 65.2, \"end\": 68.2, \"label\": \"Prepare milk\", \"metadata\": {\"detailed_step_instruction\": \"Pour milk into the milk jug.\"}}, {\"start\": 68.2, \"end\": 91.6, \"label\": \"Steam milk\", \"metadata\": {\"detailed_step_instruction\": \"Turn on the steam wand and steam the milk.\"}}, {\"start\": 91.6, \"end\": 95.3, \"label\": \"Swirl milk\", \"metadata\": {\"detailed_step_instruction\": \"Tap the milk jug on the counter to remove bubbles.\"}}, {\"start\": 95.3, \"end\": 102.3, \"label\": \"Pour milk\", \"metadata\": {\"detailed_step_instruction\": \"Pour the milk into the espresso.\"}}, {\"start\": 102.3, \"end\": 104.4, \"label\": \"Clean steam wand\", \"metadata\": {\"detailed_step_instruction\": \"Wipe down the steam wand and press the button to purge the steam wand.\"}}, {\"start\": 104.4, \"end\": 109.2, \"label\": \"Serve cappuccino\", \"metadata\": {\"detailed_step_instruction\": \"Place the cappuccino on the wooden board.\"}}]}", "thinking": false, "provenance": "Earlier run (thinking off), as in the blog draft. Run it live for the release configuration." } }, { "id": "ads", "tag": "Sports", "title": "Trackside brand banners in race highlights", "src": "examples/f1_banners.mp4", "poster": "examples/f1_banners.jpg", "duration": 267.24, "instruction": "segment only sections where you see brand advertisement or banner at the trackside", "task": "", "fields": [ { "name": "brand_name", "description": "" }, { "name": "placement", "description": "" } ], "prompt": "Instruction: segment only sections where you see brand advertisement or banner at the trackside\nmetadata_fields: [\"brand_name\", \"placement\"]\nReturn JSON: {\"chunks\":[{\"start\":sec,\"end\":sec,\"label\":...}]}", "credit": "Footage: F1 race highlights.", "result": { "chunks": [ { "start": 11.0, "end": 15.0, "label": "Louis Vuitton banner over track", "metadata": { "brand_name": "Louis Vuitton", "placement": "trackside banner" } }, { "start": 28.0, "end": 29.3, "label": "PwC banner along track", "metadata": { "brand_name": "PwC", "placement": "trackside banner" } }, { "start": 29.3, "end": 34.7, "label": "PwC banner along track", "metadata": { "brand_name": "PwC", "placement": "trackside banner" } }, { "start": 34.7, "end": 41.2, "label": "Crypto.com banner along track", "metadata": { "brand_name": "Crypto.com", "placement": "trackside banner" } }, { "start": 41.2, "end": 43.7, "label": "Archer banner along track", "metadata": { "brand_name": "Archer", "placement": "trackside banner" } }, { "start": 43.7, "end": 47.2, "label": "Las Vegas banner along track", "metadata": { "brand_name": "Las Vegas", "placement": "trackside banner" } }, { "start": 47.2, "end": 49.6, "label": "TAG Heuer banner along track", "metadata": { "brand_name": "TAG Heuer", "placement": "trackside banner" } }, { "start": 91.0, "end": 97.3, "label": "TAG Heuer banner along track", "metadata": { "brand_name": "TAG Heuer", "placement": "trackside banner" } }, { "start": 97.3, "end": 100.2, "label": "Zoox banner along track", "metadata": { "brand_name": "Zoox", "placement": "trackside banner" } }, { "start": 100.2, "end": 102.8, "label": "Qatar Airways banner along track", "metadata": { "brand_name": "Qatar Airways", "placement": "trackside banner" } }, { "start": 102.8, "end": 108.7, "label": "Louis Vuitton banner over track", "metadata": { "brand_name": "Louis Vuitton", "placement": "trackside banner" } }, { "start": 108.7, "end": 112.7, "label": "Louis Vuitton banner along track", "metadata": { "brand_name": "Louis Vuitton", "placement": "trackside banner" } }, { "start": 112.7, "end": 117.0, "label": "Salesforce and Qatar Airways banners", "metadata": { "brand_name": "Salesforce, Qatar Airways", "placement": "trackside banner" } }, { "start": 148.5, "end": 152.1, "label": "Zoox banner along track", "metadata": { "brand_name": "Zoox", "placement": "trackside banner" } }, { "start": 152.1, "end": 155.3, "label": "Qatar Airways banner along track", "metadata": { "brand_name": "Qatar Airways", "placement": "trackside banner" } }, { "start": 157.4, "end": 159.0, "label": "Heineken banner along track", "metadata": { "brand_name": "Heineken", "placement": "trackside banner" } }, { "start": 159.0, "end": 161.0, "label": "Goodyear banner along track", "metadata": { "brand_name": "Goodyear", "placement": "trackside banner" } }, { "start": 161.0, "end": 164.2, "label": "Santander banner along track", "metadata": { "brand_name": "Santander", "placement": "trackside banner" } }, { "start": 169.7, "end": 174.1, "label": "Aramco banner along track", "metadata": { "brand_name": "Aramco", "placement": "trackside banner" } }, { "start": 174.1, "end": 175.4, "label": "Crypto.com banner along track", "metadata": { "brand_name": "Crypto.com", "placement": "trackside banner" } }, { "start": 180.9, "end": 183.9, "label": "OpenAI banner along track", "metadata": { "brand_name": "OpenAI", "placement": "trackside banner" } }, { "start": 189.7, "end": 196.1, "label": "Heineken banner along track", "metadata": { "brand_name": "Heineken", "placement": "trackside banner" } }, { "start": 196.1, "end": 199.9, "label": "Qatar banner along track", "metadata": { "brand_name": "Qatar", "placement": "trackside banner" } }, { "start": 246.4, "end": 250.6, "label": "Louis Vuitton banner over track", "metadata": { "brand_name": "Louis Vuitton", "placement": "trackside banner" } }, { "start": 255.2, "end": 258.2, "label": "TAG Heuer banner along track", "metadata": { "brand_name": "TAG Heuer", "placement": "trackside banner" } } ], "reasoning": null, "raw": "{\"chunks\": [{\"start\": 11.0, \"end\": 15.0, \"label\": \"Louis Vuitton banner over track\", \"metadata\": {\"brand_name\": \"Louis Vuitton\", \"placement\": \"trackside banner\"}}, {\"start\": 28.0, \"end\": 29.3, \"label\": \"PwC banner along track\", \"metadata\": {\"brand_name\": \"PwC\", \"placement\": \"trackside banner\"}}, {\"start\": 29.3, \"end\": 34.7, \"label\": \"PwC banner along track\", \"metadata\": {\"brand_name\": \"PwC\", \"placement\": \"trackside banner\"}}, {\"start\": 34.7, \"end\": 41.2, \"label\": \"Crypto.com banner along track\", \"metadata\": {\"brand_name\": \"Crypto.com\", \"placement\": \"trackside banner\"}}, {\"start\": 41.2, \"end\": 43.7, \"label\": \"Archer banner along track\", \"metadata\": {\"brand_name\": \"Archer\", \"placement\": \"trackside banner\"}}, {\"start\": 43.7, \"end\": 47.2, \"label\": \"Las Vegas banner along track\", \"metadata\": {\"brand_name\": \"Las Vegas\", \"placement\": \"trackside banner\"}}, {\"start\": 47.2, \"end\": 49.6, \"label\": \"TAG Heuer banner along track\", \"metadata\": {\"brand_name\": \"TAG Heuer\", \"placement\": \"trackside banner\"}}, {\"start\": 91.0, \"end\": 97.3, \"label\": \"TAG Heuer banner along track\", \"metadata\": {\"brand_name\": \"TAG Heuer\", \"placement\": \"trackside banner\"}}, {\"start\": 97.3, \"end\": 100.2, \"label\": \"Zoox banner along track\", \"metadata\": {\"brand_name\": \"Zoox\", \"placement\": \"trackside banner\"}}, {\"start\": 100.2, \"end\": 102.8, \"label\": \"Qatar Airways banner along track\", \"metadata\": {\"brand_name\": \"Qatar Airways\", \"placement\": \"trackside banner\"}}, {\"start\": 102.8, \"end\": 108.7, \"label\": \"Louis Vuitton banner over track\", \"metadata\": {\"brand_name\": \"Louis Vuitton\", \"placement\": \"trackside banner\"}}, {\"start\": 108.7, \"end\": 112.7, \"label\": \"Louis Vuitton banner along track\", \"metadata\": {\"brand_name\": \"Louis Vuitton\", \"placement\": \"trackside banner\"}}, {\"start\": 112.7, \"end\": 117.0, \"label\": \"Salesforce and Qatar Airways banners\", \"metadata\": {\"brand_name\": \"Salesforce, Qatar Airways\", \"placement\": \"trackside banner\"}}, {\"start\": 148.5, \"end\": 152.1, \"label\": \"Zoox banner along track\", \"metadata\": {\"brand_name\": \"Zoox\", \"placement\": \"trackside banner\"}}, {\"start\": 152.1, \"end\": 155.3, \"label\": \"Qatar Airways banner along track\", \"metadata\": {\"brand_name\": \"Qatar Airways\", \"placement\": \"trackside banner\"}}, {\"start\": 157.4, \"end\": 159.0, \"label\": \"Heineken banner along track\", \"metadata\": {\"brand_name\": \"Heineken\", \"placement\": \"trackside banner\"}}, {\"start\": 159.0, \"end\": 161.0, \"label\": \"Goodyear banner along track\", \"metadata\": {\"brand_name\": \"Goodyear\", \"placement\": \"trackside banner\"}}, {\"start\": 161.0, \"end\": 164.2, \"label\": \"Santander banner along track\", \"metadata\": {\"brand_name\": \"Santander\", \"placement\": \"trackside banner\"}}, {\"start\": 169.7, \"end\": 174.1, \"label\": \"Aramco banner along track\", \"metadata\": {\"brand_name\": \"Aramco\", \"placement\": \"trackside banner\"}}, {\"start\": 174.1, \"end\": 175.4, \"label\": \"Crypto.com banner along track\", \"metadata\": {\"brand_name\": \"Crypto.com\", \"placement\": \"trackside banner\"}}, {\"start\": 180.9, \"end\": 183.9, \"label\": \"OpenAI banner along track\", \"metadata\": {\"brand_name\": \"OpenAI\", \"placement\": \"trackside banner\"}}, {\"start\": 189.7, \"end\": 196.1, \"label\": \"Heineken banner along track\", \"metadata\": {\"brand_name\": \"Heineken\", \"placement\": \"trackside banner\"}}, {\"start\": 196.1, \"end\": 199.9, \"label\": \"Qatar banner along track\", \"metadata\": {\"brand_name\": \"Qatar\", \"placement\": \"trackside banner\"}}, {\"start\": 246.4, \"end\": 250.6, \"label\": \"Louis Vuitton banner over track\", \"metadata\": {\"brand_name\": \"Louis Vuitton\", \"placement\": \"trackside banner\"}}, {\"start\": 255.2, \"end\": 258.2, \"label\": \"TAG Heuer banner along track\", \"metadata\": {\"brand_name\": \"TAG Heuer\", \"placement\": \"trackside banner\"}}]}", "thinking": false, "provenance": "Earlier run (thinking off), as in the blog draft. Run it live for the release configuration." } }, { "id": "crowd", "tag": "Archival", "title": "Audience cutaways in a 1963 newsreel", "src": "examples/ncaa_1963.mp4", "poster": "examples/ncaa_1963.jpg", "duration": 128.8, "instruction": "segment only portion where the game play is not shown , only audience or cheerleaders are shown", "task": "", "fields": [ { "name": "description", "description": "" } ], "prompt": "Instruction: segment only portion where the game play is not shown , only audience or cheerleaders are shown\nmetadata_fields: [\"description\"]\nReturn JSON: {\"chunks\":[{\"start\":sec,\"end\":sec,\"label\":...}]}", "credit": "Footage: 1963 NCAA Men's Division I Basketball Championship newsreel (Universal International Newsreel).", "result": { "chunks": [ { "start": 8.7, "end": 16.6, "label": "Audience shots and court logo", "metadata": { "description": "Wide shots of the packed arena audience and a close-up of the NCAA 1963 logo painted on the basketball court." } }, { "start": 24.9, "end": 26.2, "label": "Cheerleader close-up", "metadata": { "description": "A close-up of a cheerleader in a white top and dark skirt clapping and cheering." } }, { "start": 55.5, "end": 57.0, "label": "Press table and arena", "metadata": { "description": "A shot of the press table with photographers and the arena in the background." } }, { "start": 59.5, "end": 61.0, "label": "Cheerleaders cheering", "metadata": { "description": "Cheerleaders in white tops and dark skirts cheer and clap." } }, { "start": 78.9, "end": 80.1, "label": "Press table and arena", "metadata": { "description": "A shot of the press table with photographers and the arena in the background." } }, { "start": 83.6, "end": 85.0, "label": "Cheerleader close-up", "metadata": { "description": "A close-up of a cheerleader in a white top and dark skirt clapping and cheering." } }, { "start": 89.8, "end": 91.3, "label": "Coaches standing", "metadata": { "description": "Two coaches in dark suits stand and watch the game." } }, { "start": 118.0, "end": 121.0, "label": "Scoreboard and audience", "metadata": { "description": "A shot of the scoreboard showing the final score and the audience in the background." } }, { "start": 121.0, "end": 128.8, "label": "End title card", "metadata": { "description": "The end title card reading 'THE END Universal International NEWSREEL' and 'VOLUME No. 36 ISSUE No. 26'." } } ], "reasoning": null, "raw": "{\"chunks\": [{\"start\": 8.7, \"end\": 16.6, \"label\": \"Audience shots and court logo\", \"metadata\": {\"description\": \"Wide shots of the packed arena audience and a close-up of the NCAA 1963 logo painted on the basketball court.\"}}, {\"start\": 24.9, \"end\": 26.2, \"label\": \"Cheerleader close-up\", \"metadata\": {\"description\": \"A close-up of a cheerleader in a white top and dark skirt clapping and cheering.\"}}, {\"start\": 55.5, \"end\": 57.0, \"label\": \"Press table and arena\", \"metadata\": {\"description\": \"A shot of the press table with photographers and the arena in the background.\"}}, {\"start\": 59.5, \"end\": 61.0, \"label\": \"Cheerleaders cheering\", \"metadata\": {\"description\": \"Cheerleaders in white tops and dark skirts cheer and clap.\"}}, {\"start\": 78.9, \"end\": 80.1, \"label\": \"Press table and arena\", \"metadata\": {\"description\": \"A shot of the press table with photographers and the arena in the background.\"}}, {\"start\": 83.6, \"end\": 85.0, \"label\": \"Cheerleader close-up\", \"metadata\": {\"description\": \"A close-up of a cheerleader in a white top and dark skirt clapping and cheering.\"}}, {\"start\": 89.8, \"end\": 91.3, \"label\": \"Coaches standing\", \"metadata\": {\"description\": \"Two coaches in dark suits stand and watch the game.\"}}, {\"start\": 118.0, \"end\": 121.0, \"label\": \"Scoreboard and audience\", \"metadata\": {\"description\": \"A shot of the scoreboard showing the final score and the audience in the background.\"}}, {\"start\": 121.0, \"end\": 128.8, \"label\": \"End title card\", \"metadata\": {\"description\": \"The end title card reading 'THE END Universal International NEWSREEL' and 'VOLUME No. 36 ISSUE No. 26'.\"}}]}", "thinking": false, "provenance": "Earlier run (thinking off), as in the blog draft. Run it live for the release configuration." } }, { "id": "talk", "tag": "Long-form", "title": "Chapters and speakers in a 16-minute talk", "src": "examples/talk.mp4", "poster": "examples/talk.jpg", "duration": 981.46, "instruction": "Segment by the talk sections", "task": "", "fields": [ { "name": "person_speaking", "description": "name of the person speaking" }, { "name": "speaker_dress", "description": "detailed description of speaker dress in 10 words" }, { "name": "speaker_demography", "description": "detailed description of speaker demography - age, sex and ethiniciy" } ], "prompt": "Instruction: Segment by the talk sections\nmetadata_fields: [\"person_speaking\", \"speaker_dress\", \"speaker_demography\"]\nmetadata_fields_description: [\"name of the person speaking\", \"detailed description of speaker dress in 10 words\", \"detailed description of speaker demography - age, sex and ethiniciy\"]\nReturn JSON: {\"chunks\":[{\"start\":sec,\"end\":sec,\"label\":...}]}", "credit": "Talk: 'Don't build agents, build skills instead', AI Engineer Code Summit.", "result": { "chunks": [ { "start": 21.9, "end": 79.6, "label": "Introduction", "metadata": { "person_speaking": "Barry Zhang", "speaker_dress": "dark blue sweater, light brown pants", "speaker_demography": "young adult, male, asian" } }, { "start": 79.6, "end": 175.7, "label": "The problem with building agents", "metadata": { "person_speaking": "Barry Zhang", "speaker_dress": "dark blue sweater, light brown pants", "speaker_demography": "young adult, male, asian" } }, { "start": 175.7, "end": 298.7, "label": "Introducing agent skills", "metadata": { "person_speaking": "Barry Zhang", "speaker_dress": "dark blue sweater, light brown pants", "speaker_demography": "young adult, male, asian" } }, { "start": 298.7, "end": 447.8, "label": "The skills ecosystem", "metadata": { "person_speaking": "Mahesh Murag", "speaker_dress": "blue polo shirt, black pants", "speaker_demography": "young adult, male, south asian" } }, { "start": 447.8, "end": 545.6, "label": "Trends in the skills ecosystem", "metadata": { "person_speaking": "Mahesh Murag", "speaker_dress": "blue polo shirt, black pants", "speaker_demography": "young adult, male, south asian" } }, { "start": 545.6, "end": 608.7, "label": "Skills the complete picture", "metadata": { "person_speaking": "Mahesh Murag", "speaker_dress": "blue polo shirt, black pants", "speaker_demography": "young adult, male, south asian" } }, { "start": 608.7, "end": 804.7, "label": "Exploring how skills evolve", "metadata": { "person_speaking": "Mahesh Murag", "speaker_dress": "blue polo shirt, black pants", "speaker_demography": "young adult, male, south asian" } }, { "start": 804.7, "end": 871.0, "label": "Skills as a step towards continuous learning", "metadata": { "person_speaking": "Barry Zhang", "speaker_dress": "dark blue sweater, light brown pants", "speaker_demography": "young adult, male, asian" } }, { "start": 871.0, "end": 943.3, "label": "Moving up the stack", "metadata": { "person_speaking": "Barry Zhang", "speaker_dress": "dark blue sweater, light brown pants", "speaker_demography": "young adult, male, asian" } }, { "start": 943.3, "end": 980.7, "label": "Closing", "metadata": { "person_speaking": "Mahesh Murag", "speaker_dress": "blue polo shirt, black pants", "speaker_demography": "young adult, male, south asian" } } ], "reasoning": null, "raw": "{\"chunks\": [{\"start\": 21.9, \"end\": 79.6, \"label\": \"Introduction\", \"metadata\": {\"person_speaking\": \"Barry Zhang\", \"speaker_dress\": \"dark blue sweater, light brown pants\", \"speaker_demography\": \"young adult, male, asian\"}}, {\"start\": 79.6, \"end\": 175.7, \"label\": \"The problem with building agents\", \"metadata\": {\"person_speaking\": \"Barry Zhang\", \"speaker_dress\": \"dark blue sweater, light brown pants\", \"speaker_demography\": \"young adult, male, asian\"}}, {\"start\": 175.7, \"end\": 298.7, \"label\": \"Introducing agent skills\", \"metadata\": {\"person_speaking\": \"Barry Zhang\", \"speaker_dress\": \"dark blue sweater, light brown pants\", \"speaker_demography\": \"young adult, male, asian\"}}, {\"start\": 298.7, \"end\": 447.8, \"label\": \"The skills ecosystem\", \"metadata\": {\"person_speaking\": \"Mahesh Murag\", \"speaker_dress\": \"blue polo shirt, black pants\", \"speaker_demography\": \"young adult, male, south asian\"}}, {\"start\": 447.8, \"end\": 545.6, \"label\": \"Trends in the skills ecosystem\", \"metadata\": {\"person_speaking\": \"Mahesh Murag\", \"speaker_dress\": \"blue polo shirt, black pants\", \"speaker_demography\": \"young adult, male, south asian\"}}, {\"start\": 545.6, \"end\": 608.7, \"label\": \"Skills the complete picture\", \"metadata\": {\"person_speaking\": \"Mahesh Murag\", \"speaker_dress\": \"blue polo shirt, black pants\", \"speaker_demography\": \"young adult, male, south asian\"}}, {\"start\": 608.7, \"end\": 804.7, \"label\": \"Exploring how skills evolve\", \"metadata\": {\"person_speaking\": \"Mahesh Murag\", \"speaker_dress\": \"blue polo shirt, black pants\", \"speaker_demography\": \"young adult, male, south asian\"}}, {\"start\": 804.7, \"end\": 871.0, \"label\": \"Skills as a step towards continuous learning\", \"metadata\": {\"person_speaking\": \"Barry Zhang\", \"speaker_dress\": \"dark blue sweater, light brown pants\", \"speaker_demography\": \"young adult, male, asian\"}}, {\"start\": 871.0, \"end\": 943.3, \"label\": \"Moving up the stack\", \"metadata\": {\"person_speaking\": \"Barry Zhang\", \"speaker_dress\": \"dark blue sweater, light brown pants\", \"speaker_demography\": \"young adult, male, asian\"}}, {\"start\": 943.3, \"end\": 980.7, \"label\": \"Closing\", \"metadata\": {\"person_speaking\": \"Mahesh Murag\", \"speaker_dress\": \"blue polo shirt, black pants\", \"speaker_demography\": \"young adult, male, south asian\"}}]}", "thinking": false, "provenance": "Earlier run (thinking off), as in the blog draft. Run it live for the release configuration." } }, { "id": "galaxea_011", "tag": "Robotics", "title": "Dual-arm robot sorting items into two baskets", "src": "examples/galaxea_011.mp4", "poster": "examples/galaxea_011.jpg", "duration": 29.17, "instruction": "Separate segments for picking up and for placing each object.", "task": "place the food in the right basket with the right gripper, and place the non food items in the left basket with the left gripper.", "fields": [], "prompt": "Instruction: Separate segments for picking up and for placing each object.\nTask: place the food in the right basket with the right gripper, and place the non food items in the left basket with the left gripper.\nmetadata_fields: []\nReturn JSON: {\"chunks\":[{\"start\":sec,\"end\":sec,\"label\":...}]}", "credit": "Clip: WGO-Bench (CC BY-NC-SA 4.0).", "result": { "chunks": [ { "start": 0.0, "end": 2.8, "label": "Pick up the bread with the right arm", "metadata": {} }, { "start": 2.8, "end": 5.3, "label": "Place the bread in the light brown basket with the right arm", "metadata": {} }, { "start": 5.3, "end": 7.1, "label": "Pick up the tomato sauce with the right arm", "metadata": {} }, { "start": 7.1, "end": 9.2, "label": "Place the tomato sauce in the light brown basket with the right arm", "metadata": {} }, { "start": 9.2, "end": 11.4, "label": "Pick up the blue cup with the left arm", "metadata": {} }, { "start": 11.4, "end": 13.1, "label": "Place the blue cup in the dark brown basket with the left arm", "metadata": {} }, { "start": 13.1, "end": 15.7, "label": "Pick up the black napkin with the left arm", "metadata": {} }, { "start": 15.7, "end": 17.6, "label": "Place the black napkin in the dark brown basket with the left arm", "metadata": {} }, { "start": 17.6, "end": 20.3, "label": "Pick up the white fork with the left arm", "metadata": {} }, { "start": 20.3, "end": 22.2, "label": "Place the white fork in the dark brown basket with the left arm", "metadata": {} }, { "start": 22.2, "end": 24.5, "label": "Pick up the yellow spoon with the left arm", "metadata": {} }, { "start": 24.5, "end": 26.1, "label": "Place the yellow spoon in the dark brown basket with the left arm", "metadata": {} } ], "reasoning": "The user wants me to break down the video into segments based on the actions performed. I need to identify each pick and place action separately.\n\nLet me trace through the video:\n1. The right arm picks up the bread from the yellow basket and places it into the light brown basket.\n2. The right arm picks up the tomato sauce from the green tray and places it into the light brown basket.\n3. The left arm picks up the blue cup from the green tray and places it into the dark brown basket.\n4. The left arm picks up the black napkin from the green tray and places it into the dark brown basket.\n5. The left arm picks up the white fork from the green tray and places it into the dark brown basket.\n6. The left arm picks up the yellow spoon from the green tray and places it into the dark brown basket.\n\nNow I'll map these to timestamps from the video.\n\nSegment 1: pick up bread - 0.0 to 2.8\nSegment 2: place bread in light brown basket - 2.8 to 5.3\nSegment 3: pick up tomato sauce - 5.3 to 7.1\nSegment 4: place tomato sauce in light brown basket - 7.1 to 9.2\nSegment 5: pick up blue cup - 9.2 to 11.4\nSegment 6: place blue cup in dark brown basket - 11.4 to 13.1\nSegment 7: pick up black napkin - 13.1 to 15.7\nSegment 8: place black napkin in dark brown basket - 15.7 to 17.6\nSegment 9: pick up white fork - 17.6 to 20.3\nSegment 10: place white fork in dark brown basket - 20.3 to 22.2\nSegment 11: pick up yellow spoon - 22.2 to 24.5\nSegment 12: place yellow spoon in dark brown basket - 24.5 to 26.1\n\nThis matches the expected structure. Let me write the JSON.\n", "raw": "{\"chunks\":[{\"start\":0.0,\"end\":2.8,\"label\":\"Pick up the bread with the right arm\"},{\"start\":2.8,\"end\":5.3,\"label\":\"Place the bread in the light brown basket with the right arm\"},{\"start\":5.3,\"end\":7.1,\"label\":\"Pick up the tomato sauce with the right arm\"},{\"start\":7.1,\"end\":9.2,\"label\":\"Place the tomato sauce in the light brown basket with the right arm\"},{\"start\":9.2,\"end\":11.4,\"label\":\"Pick up the blue cup with the left arm\"},{\"start\":11.4,\"end\":13.1,\"label\":\"Place the blue cup in the dark brown basket with the left arm\"},{\"start\":13.1,\"end\":15.7,\"label\":\"Pick up the black napkin with the left arm\"},{\"start\":15.7,\"end\":17.6,\"label\":\"Place the black napkin in the dark brown basket with the left arm\"},{\"start\":17.6,\"end\":20.3,\"label\":\"Pick up the white fork with the left arm\"},{\"start\":20.3,\"end\":22.2,\"label\":\"Place the white fork in the dark brown basket with the left arm\"},{\"start\":22.2,\"end\":24.5,\"label\":\"Pick up the yellow spoon with the left arm\"},{\"start\":24.5,\"end\":26.1,\"label\":\"Place the yellow spoon in the dark brown basket with the left arm\"}]}", "thinking": true, "provenance": "Release configuration (thinking on): released WGO-Bench run 1." } }, { "id": "homer_59", "tag": "Egocentric", "title": "First-person: books onto a shelf", "src": "examples/homer_59.mp4", "poster": "examples/homer_59.jpg", "duration": 60.67, "instruction": "Separate segments for picking up and for placing each object.", "task": "Record yourself picking a single item from a home shelf, bookcase, or closet. Show the full reach-and-grab motion with your hands visible.", "fields": [], "prompt": "Instruction: Separate segments for picking up and for placing each object.\nTask: Record yourself picking a single item from a home shelf, bookcase, or closet. Show the full reach-and-grab motion with your hands visible.\nmetadata_fields: []\nReturn JSON: {\"chunks\":[{\"start\":sec,\"end\":sec,\"label\":...}]}", "credit": "Clip: WGO-Bench (CC BY-NC-SA 4.0).", "result": { "chunks": [ { "start": 0.0, "end": 1.2, "label": "Pick up a stack of books", "metadata": {} }, { "start": 1.2, "end": 4.6, "label": "Place the books on the shelf", "metadata": {} }, { "start": 4.6, "end": 6.7, "label": "Pick up a stack of books", "metadata": {} }, { "start": 6.7, "end": 11.2, "label": "Place the books on the shelf", "metadata": {} }, { "start": 11.2, "end": 13.3, "label": "Pick up a stack of books", "metadata": {} }, { "start": 13.3, "end": 17.6, "label": "Place the books on the shelf", "metadata": {} }, { "start": 17.6, "end": 20.1, "label": "Pick up a stack of books", "metadata": {} }, { "start": 20.1, "end": 25.2, "label": "Place the books on the shelf", "metadata": {} }, { "start": 25.2, "end": 27.5, "label": "Pick up a stack of books", "metadata": {} }, { "start": 27.5, "end": 32.2, "label": "Place the books on the shelf", "metadata": {} }, { "start": 32.2, "end": 34.4, "label": "Pick up a stack of books", "metadata": {} }, { "start": 34.4, "end": 37.7, "label": "Place the books on the shelf", "metadata": {} }, { "start": 37.7, "end": 40.2, "label": "Pick up a stack of books", "metadata": {} }, { "start": 40.2, "end": 43.7, "label": "Place the books on the shelf", "metadata": {} }, { "start": 43.7, "end": 45.6, "label": "Pick up a stack of books", "metadata": {} }, { "start": 45.6, "end": 48.1, "label": "Place the books on the shelf", "metadata": {} }, { "start": 48.1, "end": 50.0, "label": "Pick up a stack of books", "metadata": {} }, { "start": 50.0, "end": 53.4, "label": "Place the books on the shelf", "metadata": {} }, { "start": 53.4, "end": 55.2, "label": "Pick up a stack of books", "metadata": {} }, { "start": 55.2, "end": 58.0, "label": "Place the books on the shelf", "metadata": {} }, { "start": 58.0, "end": 60.7, "label": "Push the box", "metadata": {} } ], "reasoning": "The user wants me to break down the video into segments based on the actions of picking up and placing books. Let me carefully analyze the video.\n\nLooking at the video, the person is taking books out of a box and placing them on a shelf. Let me identify each action:\n\n1. 0.0 - 1.2: Pick up a stack of books from the box (both hands)\n2. 1.2 - 4.6: Place the books on the shelf (both hands)\n3. 4.6 - 6.7: Pick up another stack of books from the box (both hands)\n4. 6.7 - 11.2: Place the books on the shelf (both hands)\n5. 11.2 - 13.3: Pick up a stack of books from the box (both hands)\n6. 13.3 - 17.6: Place the books on the shelf (both hands)\n7. 17.6 - 20.1: Pick up a stack of books from the box (both hands)\n8. 20.1 - 25.2: Place the books on the shelf (both hands)\n9. 25.2 - 27.5: Pick up a stack of books from the box (both hands)\n10. 27.5 - 32.2: Place the books on the shelf (both hands)\n11. 32.2 - 34.4: Pick up a stack of books from the box (both hands)\n12. 34.4 - 37.7: Place the books on the shelf (both hands)\n13. 37.7 - 40.2: Pick up a stack of books from the box (both hands)\n14. 40.2 - 43.7: Place the books on the shelf (both hands)\n15. 43.7 - 45.6: Pick up a stack of books from the box (both hands)\n16. 45.6 - 48.1: Place the books on the shelf (both hands)\n17. 48.1 - 50.0: Pick up a stack of books from the box (both hands)\n18. 50.0 - 53.4: Place the books on the shelf (both hands)\n19. 53.4 - 55.2: Pick up a stack of books from the box (both hands)\n20. 55.2 - 58.0: Place the books on the shelf (both hands)\n21. 58.0 - 60.7: Push the box (both hands)\n\nLet me double-check the timestamps against the frames.\n\nFrame 0.0: Hands on the box, grabbing books.\nFrame 1.0: Books lifted up.\nFrame 2.0: Books being placed on the shelf.\nFrame 3.0: Books on the shelf.\nFrame 4.5: Hands adjusting the books on the shelf.\nFrame 5.5: Hands back at the box, grabbing more books.\nFrame 6.6: Books lifted from the box.\nFrame 7.7: Books being carried to the shelf.\nFrame 9.0: Books placed on the shelf.\nFrame 10.2: Adjusting the books on the shelf.\nFrame 11.2: Hands back at the box.\nFrame 12.5: Grabbing books from the box.\nFrame 13.5: Books lifted.\nFrame 14.5: Books being carried.\nFrame 16.0: Books placed on the shelf.\nFrame 17.5: Adjusting the books.\nFrame 18.5: Hands at the box.\nFrame 19.6: Grabbing books.\nFrame 20.6: Books lifted.\nFrame 21.7: Books being carried.\nFrame 22.8: Books placed on the shelf.\nFrame 24.0: Adjusting the books.\nFrame 25.2: Hands at the box.\nFrame 26.5: Grabbing books.\nFrame 27.6: Books lifted.\nFrame 28.7: Books being carried.\nFrame 30.0: Books placed on the shelf.\nFrame 31.2: Adjusting the books.\nFrame 32.3: Hands at the box.\nFrame 33.5: Grabbing books.\nFrame 34.5: Books lifted.\nFrame 35.6: Books being carried.\nFrame 36.7: Books placed on the shelf.\nFrame 37.7: Adjusting the books.\nFrame 38.8: Hands at the box.\nFrame 39.8: Grabbing books.\nFrame 40.8: Books lifted.\nFrame 41.9: Books being carried.\nFrame 42.9: Books placed on the shelf.\nFrame 43.9: Hands at the box.\nFrame 45.0: Grabbing books.\nFrame 46.0: Books lifted.\nFrame 47.1: Books placed on the shelf.\nFrame 48.1: Hands at the box.\nFrame 49.2: Grabbing books.\nFrame 50.3: Books lifted.\nFrame 51.4: Books being carried.\nFrame 52.4: Books placed on the shelf.\nFrame 53.5: Hands at the box.\nFrame 54.5: Grabbing books.\nFrame 55.5: Books lifted.\nFrame 56.6: Books placed on the shelf.\nFrame 57.7: Adjusting the books.\nFrame 58.8: Hands on the box, pushing it.\nFrame 60.0: Box being pushed.\n\nSo the segments are:\n\n1. Pick up books: 0.0 - 1.2\n2. Place books on shelf: 1.2 - 4.6\n3. Pick up books: 4.6 - 6.7\n4. Place books on shelf: 6.7 - 11.2\n5. Pick up books: 11.2 - 13.3\n6. Place books on shelf: 13.3 - 17.6\n7. Pick up books: 17.6 - 20.1\n8. Place books on shelf: 20.1 - 25.2\n9. Pick up books: 25.2 - 27.5\n10. Place books on shelf: 27.5 - 32.2\n11. Pick up books: 32.2 - 34.4\n12. Place books on shelf: 34.4 - 37.7\n13. Pick up books: 37.7 - 40.2\n14. Place books on shelf: 40.2 - 43.7\n15. Pick up books: 43.7 - 45.6\n16. Place books on shelf: 45.6 - 48.1\n17. Pick up books: 48.1 - 50.0\n18. Place books on shelf: 50.0 - 53.4\n19. Pick up books: 53.4 - 55.2\n20. Place books on shelf: 55.2 - 58.0\n21. Push box: 58.0 - 60.7\n\nThis looks consistent. Let me format the JSON.\n", "raw": "{\"chunks\":[{\"start\":0.0,\"end\":1.2,\"label\":\"Pick up a stack of books\"},{\"start\":1.2,\"end\":4.6,\"label\":\"Place the books on the shelf\"},{\"start\":4.6,\"end\":6.7,\"label\":\"Pick up a stack of books\"},{\"start\":6.7,\"end\":11.2,\"label\":\"Place the books on the shelf\"},{\"start\":11.2,\"end\":13.3,\"label\":\"Pick up a stack of books\"},{\"start\":13.3,\"end\":17.6,\"label\":\"Place the books on the shelf\"},{\"start\":17.6,\"end\":20.1,\"label\":\"Pick up a stack of books\"},{\"start\":20.1,\"end\":25.2,\"label\":\"Place the books on the shelf\"},{\"start\":25.2,\"end\":27.5,\"label\":\"Pick up a stack of books\"},{\"start\":27.5,\"end\":32.2,\"label\":\"Place the books on the shelf\"},{\"start\":32.2,\"end\":34.4,\"label\":\"Pick up a stack of books\"},{\"start\":34.4,\"end\":37.7,\"label\":\"Place the books on the shelf\"},{\"start\":37.7,\"end\":40.2,\"label\":\"Pick up a stack of books\"},{\"start\":40.2,\"end\":43.7,\"label\":\"Place the books on the shelf\"},{\"start\":43.7,\"end\":45.6,\"label\":\"Pick up a stack of books\"},{\"start\":45.6,\"end\":48.1,\"label\":\"Place the books on the shelf\"},{\"start\":48.1,\"end\":50.0,\"label\":\"Pick up a stack of books\"},{\"start\":50.0,\"end\":53.4,\"label\":\"Place the books on the shelf\"},{\"start\":53.4,\"end\":55.2,\"label\":\"Pick up a stack of books\"},{\"start\":55.2,\"end\":58.0,\"label\":\"Place the books on the shelf\"},{\"start\":58.0,\"end\":60.7,\"label\":\"Push the box\"}]}", "thinking": true, "provenance": "Release configuration (thinking on): released WGO-Bench run 1." } }, { "id": "homer_60", "tag": "Egocentric", "title": "First-person: putting things back on shelves", "src": "examples/homer_60.mp4", "poster": "examples/homer_60.jpg", "duration": 71.23, "instruction": "Separate segments for picking up and for placing each object.", "task": "Record yourself placing items back onto shelves. Show the full approach, positioning, and placement motion with hands visible.", "fields": [], "prompt": "Instruction: Separate segments for picking up and for placing each object.\nTask: Record yourself placing items back onto shelves. Show the full approach, positioning, and placement motion with hands visible.\nmetadata_fields: []\nReturn JSON: {\"chunks\":[{\"start\":sec,\"end\":sec,\"label\":...}]}", "credit": "Clip: WGO-Bench (CC BY-NC-SA 4.0).", "result": { "chunks": [ { "start": 0.0, "end": 1.4, "label": "Pick up the stack of books on the floor", "metadata": {} }, { "start": 1.4, "end": 5.8, "label": "Place the stack of books on the middle shelf", "metadata": {} }, { "start": 5.8, "end": 8.5, "label": "Pick up the stack of books on the floor", "metadata": {} }, { "start": 8.5, "end": 14.1, "label": "Place the stack of books on the middle shelf", "metadata": {} }, { "start": 14.1, "end": 16.6, "label": "Pick up the stack of books on the floor", "metadata": {} }, { "start": 16.6, "end": 21.9, "label": "Place the stack of books on the middle shelf", "metadata": {} }, { "start": 21.9, "end": 25.2, "label": "Pick up the stack of books on the floor", "metadata": {} }, { "start": 25.2, "end": 31.2, "label": "Place the stack of books on the middle shelf", "metadata": {} }, { "start": 31.2, "end": 33.4, "label": "Pick up the stack of books on the floor", "metadata": {} }, { "start": 33.4, "end": 40.7, "label": "Place the stack of books on the middle shelf", "metadata": {} }, { "start": 40.7, "end": 42.8, "label": "Pick up the book on the floor", "metadata": {} }, { "start": 42.8, "end": 46.1, "label": "Place the book on the middle shelf", "metadata": {} }, { "start": 46.1, "end": 47.7, "label": "Pick up the book on the floor", "metadata": {} }, { "start": 47.7, "end": 50.9, "label": "Place the book on the middle shelf", "metadata": {} }, { "start": 50.9, "end": 52.6, "label": "Pick up the book on the floor", "metadata": {} }, { "start": 52.6, "end": 55.1, "label": "Place the book on the middle shelf", "metadata": {} }, { "start": 55.1, "end": 58.5, "label": "Pick up the stack of books on the floor", "metadata": {} }, { "start": 58.5, "end": 68.0, "label": "Place the stack of books on the middle shelf", "metadata": {} }, { "start": 68.0, "end": 71.2, "label": "Look at the books on the shelf", "metadata": {} } ], "reasoning": "The user wants me to break down the video into segments based on the actions of picking up and placing books. Let me carefully analyze the video.\n\nLooking at the video:\n- 0.0-1.4: Pick up a stack of books from the floor\n- 1.4-5.8: Place the stack of books on the middle shelf\n- 5.8-8.5: Pick up a stack of books from the floor\n- 8.5-14.1: Place the stack of books on the middle shelf\n- 14.1-16.6: Pick up a stack of books from the floor\n- 16.6-21.9: Place the stack of books on the middle shelf\n- 21.9-25.2: Pick up a stack of books from the floor\n- 25.2-31.2: Place the stack of books on the middle shelf\n- 31.2-33.4: Pick up a stack of books from the floor\n- 33.4-40.7: Place the stack of books on the middle shelf\n- 40.7-42.8: Pick up a book from the floor\n- 42.8-46.1: Place the book on the middle shelf\n- 46.1-47.7: Pick up a book from the floor\n- 47.7-50.9: Place the book on the middle shelf\n- 50.9-52.6: Pick up a book from the floor\n- 52.6-55.1: Place the book on the middle shelf\n- 55.1-58.5: Pick up a stack of books from the floor\n- 58.5-68.0: Place the stack of books on the middle shelf\n- 68.0-71.2: Look at the books on the shelf\n\nNow let me format this into JSON.\n", "raw": "{\"chunks\":[{\"start\":0.0,\"end\":1.4,\"label\":\"Pick up the stack of books on the floor\"},{\"start\":1.4,\"end\":5.8,\"label\":\"Place the stack of books on the middle shelf\"},{\"start\":5.8,\"end\":8.5,\"label\":\"Pick up the stack of books on the floor\"},{\"start\":8.5,\"end\":14.1,\"label\":\"Place the stack of books on the middle shelf\"},{\"start\":14.1,\"end\":16.6,\"label\":\"Pick up the stack of books on the floor\"},{\"start\":16.6,\"end\":21.9,\"label\":\"Place the stack of books on the middle shelf\"},{\"start\":21.9,\"end\":25.2,\"label\":\"Pick up the stack of books on the floor\"},{\"start\":25.2,\"end\":31.2,\"label\":\"Place the stack of books on the middle shelf\"},{\"start\":31.2,\"end\":33.4,\"label\":\"Pick up the stack of books on the floor\"},{\"start\":33.4,\"end\":40.7,\"label\":\"Place the stack of books on the middle shelf\"},{\"start\":40.7,\"end\":42.8,\"label\":\"Pick up the book on the floor\"},{\"start\":42.8,\"end\":46.1,\"label\":\"Place the book on the middle shelf\"},{\"start\":46.1,\"end\":47.7,\"label\":\"Pick up the book on the floor\"},{\"start\":47.7,\"end\":50.9,\"label\":\"Place the book on the middle shelf\"},{\"start\":50.9,\"end\":52.6,\"label\":\"Pick up the book on the floor\"},{\"start\":52.6,\"end\":55.1,\"label\":\"Place the book on the middle shelf\"},{\"start\":55.1,\"end\":58.5,\"label\":\"Pick up the stack of books on the floor\"},{\"start\":58.5,\"end\":68.0,\"label\":\"Place the stack of books on the middle shelf\"},{\"start\":68.0,\"end\":71.2,\"label\":\"Look at the books on the shelf\"}]}", "thinking": true, "provenance": "Release configuration (thinking on): released WGO-Bench run 1." } }, { "id": "galaxea_047", "tag": "Robotics", "title": "Dual-arm robot pouring powder", "src": "examples/galaxea_047.mp4", "poster": "examples/galaxea_047.jpg", "duration": 13.43, "instruction": "Separate segments for picking up and for placing each object.", "task": "use a gripper to pick up the cup and pour the powder into a bowl or tray.", "fields": [], "prompt": "Instruction: Separate segments for picking up and for placing each object.\nTask: use a gripper to pick up the cup and pour the powder into a bowl or tray.\nmetadata_fields: []\nReturn JSON: {\"chunks\":[{\"start\":sec,\"end\":sec,\"label\":...}]}", "credit": "Clip: WGO-Bench (CC BY-NC-SA 4.0).", "result": { "chunks": [ { "start": 0.0, "end": 3.5, "label": "Pick up the cup with the right arm", "metadata": {} }, { "start": 3.5, "end": 8.5, "label": "Pour the powder into the blue tray with the right arm", "metadata": {} }, { "start": 8.5, "end": 11.0, "label": "Place the cup on the table with the right arm", "metadata": {} } ], "reasoning": "The user wants me to break down the video into segments based on the actions performed.\n\n1. **Pick up the cup**: The robot arm reaches for the glass cup containing the white powder and lifts it. This happens from the start until about 3.5 seconds.\n2. **Pour the powder into the blue tray**: The robot arm tilts the cup over the blue tray, spilling the white powder into it. This happens from 3.5 seconds to about 8.5 seconds.\n3. **Place the cup on the table**: The robot arm lowers the now-empty cup back down onto the table surface. This happens from 8.5 seconds to the end.\n\nI will structure the JSON output with these three chunks.\n", "raw": "{\"chunks\":[{\"start\":0.0,\"end\":3.5,\"label\":\"Pick up the cup with the right arm\"},{\"start\":3.5,\"end\":8.5,\"label\":\"Pour the powder into the blue tray with the right arm\"},{\"start\":8.5,\"end\":11.0,\"label\":\"Place the cup on the table with the right arm\"}]}", "thinking": true, "provenance": "Release configuration (thinking on): released WGO-Bench run 1." } }, { "id": "robointer_droid_000037", "tag": "Robotics", "title": "Single-arm robot, pick and place", "src": "examples/robointer_droid_000037.mp4", "poster": "examples/robointer_droid_000037.jpg", "duration": 28.5, "instruction": "Separate segments for picking up and for placing each object.", "task": "Put the small white drawer in the top drawer and then close the drawer", "fields": [], "prompt": "Instruction: Separate segments for picking up and for placing each object.\nTask: Put the small white drawer in the top drawer and then close the drawer\nmetadata_fields: []\nReturn JSON: {\"chunks\":[{\"start\":sec,\"end\":sec,\"label\":...}]}", "credit": "Clip: WGO-Bench (CC BY-NC-SA 4.0).", "result": { "chunks": [ { "start": 0.0, "end": 13.2, "label": "Pick up the small white drawer from the cabinet", "metadata": {} }, { "start": 13.2, "end": 19.5, "label": "Place the small white drawer in the top drawer", "metadata": {} }, { "start": 19.5, "end": 28.5, "label": "Close the drawer", "metadata": {} } ], "reasoning": "The user wants me to break down the video into segments based on the actions performed.\n\n1. **Pick up the small white drawer from the cabinet**: The robot arm reaches into the cabinet and grabs the small white drawer. This happens from the start until about 13.2 seconds.\n2. **Place the small white drawer in the top drawer**: The robot arm moves the white drawer from the cabinet into the open top drawer. This happens from 13.2 seconds to about 19.5 seconds.\n3. **Close the drawer**: The robot arm pushes the top drawer closed. This happens from 19.5 seconds to the end of the video.\n\nI will format these into the requested JSON structure.\n", "raw": "{\"chunks\":[{\"start\":0.0,\"end\":13.2,\"label\":\"Pick up the small white drawer from the cabinet\"},{\"start\":13.2,\"end\":19.5,\"label\":\"Place the small white drawer in the top drawer\"},{\"start\":19.5,\"end\":28.5,\"label\":\"Close the drawer\"}]}", "thinking": true, "provenance": "Release configuration (thinking on): released WGO-Bench run 1." } }]123version https://git-lfs.github.com/spec/v1oid sha256:51d8a3068e7769db6a5a8785894f2dde71127e6a852d1e0e6c9084734d84359bsize 2582591123version https://git-lfs.github.com/spec/v1oid sha256:1a888a15f0ddd01427ed4c19e72a51f4cbce46738780acbc2e9b20b64c9a8e5fsize 13883886123version https://git-lfs.github.com/spec/v1oid sha256:1371f6790a42dbabe5e7b4d02d1875eff6c76267036b27c35f96dfe8bfe82fc4size 560202123version https://git-lfs.github.com/spec/v1oid sha256:464e699e74dc50bd4a29a470d02110be1c777506f4930f731413451448e02fb6size 121021123version https://git-lfs.github.com/spec/v1oid sha256:88bf1256067c026113d7e38f23cef7dbac997e7b6b7def850185fd0cea386971size 2517903123version https://git-lfs.github.com/spec/v1oid sha256:b24a4f085da00a6e3aa26ea1bfea04592a75447550ec69854a811b673ec58e12size 2133160123version https://git-lfs.github.com/spec/v1oid sha256:de71ab855f4a7bc60f2ddacac20f32ca8b3941297457c0e93690120b59a11c12size 7866753123version https://git-lfs.github.com/spec/v1oid sha256:78296c664c5e11359d18b06c89418c5cb5156f43d9a4e565cc002a01f5d655fdsize 125509123version https://git-lfs.github.com/spec/v1oid sha256:820511cb0d69428d5d14d969cbf9694fb6d9536ca877eb27f1fb54ecef44aa5dsize 13650416123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212<div id="tempora-root"><header class="nav"> <div class="frame nav-in"> <a class="brand" href="#top" aria-label="Tempora-27b"> <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">-27B</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/infinitylogesh/tempora-27b" target="_blank" rel="noopener">Model card ↗</a> </div> </div> </header>
<main id="top"> <!-- ============ HERO ============ --> <section class="hero"> <div class="pixels pixels-l" data-pixels="left" aria-hidden="true"></div> <div class="pixels pixels-r" data-pixels="right" aria-hidden="true"></div> <div class="frame hero-in"> <div class="eyebrow"><span class="tag tag-solid">Ambient</span><span class="tag tag-plain">Research release</span></div> <h1>Segment any video<br />with one instruction.</h1> <p class="lede">Give <b>tempora-27b</b> a video and a sentence about what counts as a chunk. It returns ordered JSON segments with start and end times, a short label, and any fields you ask it to fill. Open weights, 27B, fine-tuned from Qwen3.8-27B.</p> <div class="cta"> <a class="btn btn-accent" href="#demo">Try an example →</a> <a class="btn btn-line" href="#how">See the prompt format</a> </div> <div class="specs"> <span>27B · Qwen3.8 base</span><span>3 fps · up to 540 frames</span><span>JSON chunks + custom fields</span> </div> </div> </section>
<!-- ============ STATS ============ --> <section class="stats frame"> <div class="stat"><b>0.51</b><span>Segment F1 on WGO-Bench<br />(100 episodes, 3 runs)</span></div> <div class="stat"><b>$0.09</b><span>Per hour of video,<br />thinking on, list price</span></div> <div class="stat"><b>7.7×</b><span>Cheaper than Gemini 4 Carbon, the one model ahead of it on native video</span></div> <div class="stat"><b>Any</b><span>Metadata fields per chunk,<br />named in the prompt</span></div> </section>
<!-- ============ DEMO ============ --> <section class="sec" id="demo"> <div class="frame"> <div class="sec-head"> <div> <div class="label">[ 01 · Try it ]</div> <h2>Pick a clip.<br />Write an instruction.</h2> </div> <p class="sec-note">Examples open with a saved output, so they show instantly. Change the instruction, or upload your own video, and run it on a shared ZeroGPU H200. A run takes from about half a minute to a few minutes, longer with thinking on and for long videos.</p> </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> </label> </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">Prompt</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> <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 class="preview" open> <summary class="label">Text sent with the video</summary> <pre id="prompt-preview"></pre> </details> <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> </div>
<!-- results --> <div class="panel results"> <div class="tabs" role="tablist"> <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> <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> </section>
<!-- ============ HOW ============ --> <section class="sec" id="how"> <div class="frame"> <div class="sec-head"> <div> <div class="label">[ 02 · 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 stepsTask: make a cappuccinometadata_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">[ 03 · 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 per hour of video at 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">Best configuration per system and input type. "Contact sheets": timestamped frame grids with a long rules prompt instead of native video. tempora-27b: 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">-27B</span></span> <span class="mono dim">Ambient · private preview · outputs are model predictions and can be wrong</span> </div> </footer></div>.gitattributes+9
README.md+12-7
app.pyAdded+229
build_examples.pyAdded+135
requirements.txtAdded+7
static/app.cssAdded+261
static/app.jsAdded+351
static/benchmark.jsonAdded+101
static/examples.jsonAdded+1104
static/examples/cappuccino.jpgAdded

static/examples/cappuccino.mp4Added+3
static/examples/f1_banners.jpgAdded

static/examples/f1_banners.mp4Added+3
static/examples/galaxea_011.jpgAdded

static/examples/galaxea_011.mp4Added+3
static/examples/galaxea_047.jpgAdded

static/examples/galaxea_047.mp4Added+3
static/examples/homer_59.jpgAdded

static/examples/homer_59.mp4Added+3
static/examples/homer_60.jpgAdded

static/examples/homer_60.mp4Added+3
static/examples/ncaa_1963.jpgAdded

static/examples/ncaa_1963.mp4Added+3
static/examples/robointer_droid_000037.jpgAdded

static/examples/robointer_droid_000037.mp4Added+3
static/examples/talk.jpgAdded

static/examples/talk.mp4Added+3
static/page.htmlAdded+212