Spaces:
Running on Zero
Running on Zero
torchaudio for off-rate reference soundtracks; title, fillable width, slot height
Browse files376 unmodified lines37737837938038038138238338438538638738838921 unmodified lines4114124134084144154164173 unmodified lines42142242341842442542642742242842943043119 unmodified lines451452453454455456457458459376 unmodified lines except gr.Error: raise except Exception as error: raise gr.Error(str(error).strip().splitlines()[-1] if str(error).strip() else repr(error)) from error # gradio only puts the exception *type* on the wire, so the useful half of a conditioner-side failure is in # that Space's logs. Print what did come back here, name the Space, and say where the rest of it is. traceback.print_exc() raise gr.Error( f"The conditioner ({CONDITIONER_SPACE}) failed with `{type(error).__name__}: {error}`. " "Its logs carry the full traceback." ) from error condition_seconds = time.time() - conditioned height, width, num_frames = (int(metadata[key]) for key in ("height", "width", "num_frames"))
21 unmodified lines
load_models()
INTRO = """# MiniMax-H3INTRO = """# MiniMax-H3 Reference
<div align="center"> <a href="https://huggingface.co/MiniMaxAI/MiniMax-H3"><strong>[ model ]</strong></a> 3 unmodified lines
**MiniMax-H3** is a 33B parameter state of the art video generation model that produces video and afully synchronized soundtrack (ambience, foley, speech). Bring your own subject, voice or camera move as areference — they are read **in tab order**, images then audio then video.reference."""
CSS = """#col-container { max-width: 1180px; margin: 0 auto; }.main.fillable { max-width: 1250px !important; }.dark .gradio-container { color: var(--body-text-color); }"""
19 unmodified lines label="Subject, style or scene", type="filepath", min_width=180, # Fixed, so a row that wraps to a single slot stays the same size as a full one # instead of stretching to the width of the column. height=210, visible=index < OPEN_IMAGE_SLOTS, ) for index in range(MAX_IMAGE_SLOTS)app.py+13-4