INNER CODE UNIT · Python
generate_film
F-R-L/forge-film · forge/webui/app.py:221
def generate_film(
story: str,
num_scenes: int,
workers: int,
backend: str,
skip_vlm: bool,
progress=gr.Progress(track_tqdm=True),
):
"""Gradio-facing synchronous wrapper around the async pipeline."""
if not story.strip():
raise gr.Error("Please enter a story.")
logs = []
def log_fn(msg: str):
logs.append(msg)
output_dir = tempfile.mkdtemp(prefix="forge_webui_")