Spaces:
Runtime error
Runtime error
Update app.py
Browse files273 unmodified lines27427527627727827928084 unmodified lines3653663673683693703716 unmodified lines378379380381382383384197 unmodified lines582583584585586587588273 unmodified lineslora_path = hf_hub_download(repo_id="dagloop5/LoRA", filename="LoRA2.safetensors")# Create a descriptor object that the LTX loader expects.# initial strength is set to 1.0; we'll mutate `.strength` at runtime from the UI slider.lora_descriptor = LoraPathStrengthAndSDOps(lora_path, 0.5, LTXV_LORA_COMFY_RENAMING_MAP)print(f"LoRA: {lora_path}")84 unmodified linesreturn gr.update(value=w), gr.update(value=h)@spaces.GPU(duration=100)@torch.inference_mode()def generate_video(first_image,6 unmodified linesrandomize_seed: bool = True,height: int = 1024,width: int = 1536,lora_strength: float = 0.5,progress=gr.Progress(track_tqdm=True),):try:197 unmodified linesinfo="Scale for the LoRA weights (0.0 = off). Set near 1.0 for full effect.",minimum=0.0,maximum=2.0,value=0.5,step=0.01,)273 unmodified lines27427527627727827928084 unmodified lines3653663673683693703716 unmodified lines378379380381382383384197 unmodified lines582583584585586587588273 unmodified lineslora_path = hf_hub_download(repo_id="dagloop5/LoRA", filename="LoRA2.safetensors")# Create a descriptor object that the LTX loader expects.# initial strength is set to 1.0; we'll mutate `.strength` at runtime from the UI slider.lora_descriptor = LoraPathStrengthAndSDOps(lora_path, 0.75, LTXV_LORA_COMFY_RENAMING_MAP)print(f"LoRA: {lora_path}")84 unmodified linesreturn gr.update(value=w), gr.update(value=h)@spaces.GPU(duration=200)@torch.inference_mode()def generate_video(first_image,6 unmodified linesrandomize_seed: bool = True,height: int = 1024,width: int = 1536,lora_strength: float = 0.75,progress=gr.Progress(track_tqdm=True),):try:197 unmodified linesinfo="Scale for the LoRA weights (0.0 = off). Set near 1.0 for full effect.",minimum=0.0,maximum=2.0,value=0.75,step=0.01,)
app.py+4-4