Spaces:
Running on Zero
Running on Zero
Link the PAN 2 prompt rewriter; use structured captions for the examples
#1
by mgwillia - opened
This PR updates the PAN 2 demo's prompting guidance:
- Links to the PAN 2 prompt rewriter. The description previously said the conceptual reasoner was "not included here". It now links the PAN 2 Conceptual Reasoner skill (for Claude Code or Codex) and
prompts_rewritter.py(for a local LLM), so users can turn a free-text idea into a caption and paste it in. The README links them too. - The examples are now structured captions. PAN 2 is conditioned on structured, time-grounded world-state captions, so the fox and coffee-mug examples are rewritten in that format for 5 s (121 frames):
- Both pass the PAN 2 caption checks and fit the token budget (596 and 529 tokens).
- They're kept as readable JSON in
app.pyand compacted at load time. - Each example has a short label in the examples table.
- Recommend leaving the negative prompt empty. When the box is empty, the pipeline uses PAN 2's fixed default negative prompt, timed to the clip length. That's the intended setting, so the box now sits in Settings with a recommendation to leave it empty.
We rendered both examples with the diffusers PAN 2 recipe at the Space's settings (121 frames, 50 steps, CFG 2.5, seed 123, default negative), at 480ร832 and 704ร1248, and checked that each video matches its caption.
๐ค Generated with Claude Code
thanks merged
akhaliq changed pull request status to merged