Update app.py
Browse files350 unmodified lines351352353354355356357358359360361362450 unmodified lines813814815816817818819820821822823225 unmodified lines1049105010511052105310541055350 unmodified linesreturn LOAD_ERRORif PIPE is None:return f"Loading `{MODEL_REPO}` (transformer + VAEs, 77.3 GB). Watch the Space logs."import h3_aotifilm = "FILM **ready**" if FILM is not None else f"FILM **off** ({FILM_ERROR})"return (f"Ready · transformer + VAEs **bfloat16, unquantized** · placement `{PLACEMENT}` · attention "f"`{ATTENTION}` · {h3_aoti.status()} · {film} · {LORA_STATUS or 'no LoRA'} · loaded in {LOADED_IN:.0f}s · "f"conditioner `{CONDITIONER_SPACE}`")450 unmodified linespost = [f"RCAS {float(sharpen):.2f}" if float(sharpen) > 0 else "no sharpening"]post.append(f"FILM {multiplier}x -> {fps} fps" if multiplier > 1 else f"{fps} fps")lora_text = " / ".join(f"{LORA_LABELS.get(name, name)} {strength:.2f}" for name, strength in lora_strengths.items())report = (f"`{width}x{height}`, {num_frames} frames ({num_frames / FPS:.3f} s) -> {out_frames} frames at {fps} fps · "f"{int(steps)} steps of `{schedule_key}` · {' · '.join(post)} · seed {int(seed)} · {lora_text}\n\n"f"conditioner {condition_seconds:.0f}s ({plan['num_text_tokens']} tokens"f"{', upsampled' if refined else ''}) · denoise + decode {denoise_seconds:.0f}s "f"({denoise_seconds / max(1, int(steps)):.1f} s/step) · post {post_seconds:.0f}s · "225 unmodified linesmaximum=2.0,step=0.05,value=DEFAULT_LORA_I_STRENGTH,info="Video/Audio Shift = 12/3",)with gr.Accordion("Custom LoRAs", open=False):lora_a_strength = gr.Slider(350 unmodified lines351352353354355356357358359360361450 unmodified lines812813814815816817818819820821822823824825826827828829830831832833225 unmodified lines1059106010611062106310641065350 unmodified linesreturn LOAD_ERRORif PIPE is None:return f"Loading `{MODEL_REPO}` (transformer + VAEs, 77.3 GB). Watch the Space logs."film = "FILM **ready**" if FILM is not None else f"FILM **off** ({FILM_ERROR})"return (f"Ready · transformer + VAEs **bfloat16, unquantized** · placement `{PLACEMENT}` · attention "f"`{ATTENTION}` · {film} · {LORA_STATUS or 'no LoRA'} · loaded in {LOADED_IN:.0f}s · "f"conditioner `{CONDITIONER_SPACE}`")450 unmodified linespost = [f"RCAS {float(sharpen):.2f}" if float(sharpen) > 0 else "no sharpening"]post.append(f"FILM {multiplier}x -> {fps} fps" if multiplier > 1 else f"{fps} fps")lora_text = " / ".join(f"{LORA_LABELS.get(name, name)} {strength:.2f}"for name, strength in lora_strengths.items()if strength > 0)info = [f"{int(steps)} steps of `{schedule_key}`",f"sampler `{sampler}`",f"shift {float(video_shift):.1f}/{float(audio_shift):.1f}",*post,f"seed {int(seed)}",]if lora_text:info.append(lora_text)report = (f"`{width}x{height}`, {num_frames} frames ({num_frames / FPS:.3f} s) -> {out_frames} frames at {fps} fps · "f"{' · '.join(info)}\n\n"f"conditioner {condition_seconds:.0f}s ({plan['num_text_tokens']} tokens"f"{', upsampled' if refined else ''}) · denoise + decode {denoise_seconds:.0f}s "f"({denoise_seconds / max(1, int(steps)):.1f} s/step) · post {post_seconds:.0f}s · "225 unmodified linesmaximum=2.0,step=0.05,value=DEFAULT_LORA_I_STRENGTH,visible=False, # not confirmed working at its own shift yet — see the 8-step LoRA thread)with gr.Accordion("Custom LoRAs", open=False):lora_a_strength = gr.Slider(
app.py+15-5