H3-Script-Studio / README.md
swimmerzeromaybe's picture
Space card
485879a verified
|
Raw History Blame Contribute Delete
3.36 kB

A newer version of the Gradio SDK is available: 6.32.0

Upgrade
metadata
title: H3 Script Studio
emoji: 🎬
colorFrom: indigo
colorTo: pink
sdk: gradio
sdk_version: 6.20.0
app_file: app.py
pinned: false
tags:
  - ml-intern
short_description: Structured pre-production β†’ shot prompts β†’ MiniMax-H3 clips

H3 Script Studio

A structured, no-LLM pre-production pipeline and prompt builder for MiniMax-H3 video generation β€” the writing half of a shot-by-shot movie workflow, built to drive a render backend Space.

Pipeline tabs: Concept (title, logline, genre, style, tone, palette β†’ a style bible reused in every prompt) β†’ Characters (locked word-for-word appearance strings, the mechanism that keeps a character on-model across shots) β†’ Locations β†’ Story beats (one per line) β†’ Shots (camera, lens, lighting, audio, canvas, duration, seed β†’ composed H3 prompt) β†’ Keyframes (FLUX.1-schnell stills or uploads for first/last frames) β†’ Render & assemble (delegated clip generation + ffmpeg concat) β†’ Project JSON export/import.

How rendering works

This Space runs on free CPU β€” it delegates all heavy work:

  • Video clips β†’ any Space exposing the ShotCraft-style /generate API (prompt, first/last keyframes, canvas, duration, steps, seed, upsample, LoRA). Default backend: swimmerzeromaybe/ShotCraft-Movie-Production, which also provides /stitch for assembling the sequence. Note: the official MiniMaxAI/MiniMax-H3-Turbo-Lora demo was rewritten to a gr.Workflow canvas and no longer exposes /generate to clients.
  • Stills β†’ black-forest-labs/FLUX.1-schnell via the HF Inference router. Add an HF_TOKEN secret to this Space (Settings β†’ Variables and secrets) to enable it.
  • Canvas table and duration snapping mirror the backend exactly (H3's video VAE decodes 17Β·n+5 frames at 24 fps, 2–14 s clips), so no composed setting is ever rejected by the conditioner.

Setup

  1. (Optional) Add HF_TOKEN as a Space secret for FLUX stills and for calling private backends.
  2. Set the backend Space id on the Render tab. Its GPU quota applies to renders.

Workflow tips

  • Keep each beat filmable in 2–14 s: one place, one action, one moment of light.
  • Reuse the exact character appearance string in every shot β€” paraphrasing breaks consistency.
  • Generate 4–6 still options per keyframe and pick the best; the same seed + prompt gives the same frame.
  • Export the project JSON often; keyframe images are session files and are not saved into the export.

Built with ML Intern β€” try: