Spaces:
Running on Zero
Running on Zero
torchaudio for off-rate reference soundtracks; title, fillable width, slot height
Browse files376 unmodified lines37737837938038138238321 unmodified lines4054064074084094104113 unmodified lines41541641741841942042142242342442519 unmodified lines445446447448449450376 unmodified linesexcept gr.Error:raiseexcept Exception as error:raise gr.Error(str(error).strip().splitlines()[-1] if str(error).strip() else repr(error)) from errorcondition_seconds = time.time() - conditionedheight, width, num_frames = (int(metadata[key]) for key in ("height", "width", "num_frames"))21 unmodified linesload_models()INTRO = """# MiniMax-H3<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."""CSS = """#col-container { max-width: 1180px; margin: 0 auto; }.dark .gradio-container { color: var(--body-text-color); }"""19 unmodified lineslabel="Subject, style or scene",type="filepath",min_width=180,visible=index < OPEN_IMAGE_SLOTS,)for index in range(MAX_IMAGE_SLOTS)376 unmodified lines37737837938038138238338438538638738838921 unmodified lines4114124134144154164173 unmodified lines42142242342442542642742842943043119 unmodified lines451452453454455456457458459376 unmodified linesexcept gr.Error:raiseexcept Exception as 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 errorcondition_seconds = time.time() - conditionedheight, width, num_frames = (int(metadata[key]) for key in ("height", "width", "num_frames"))21 unmodified linesload_models()INTRO = """# 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."""CSS = """.main.fillable { max-width: 1250px !important; }.dark .gradio-container { color: var(--body-text-color); }"""19 unmodified lineslabel="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