PeterL1n commited on
Commit
a67daee
1 Parent(s): 24e347a
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -49,7 +49,7 @@ def generate_image(prompt, base, motion, step):
49
  if motion_loaded != motion:
50
  pipe.unload_lora_weights()
51
  if motion != "":
52
- pipe.load_lora_weights(hf_hub_download("guoyww/animatediff", motion), adapter_name="motion")
53
  pipe.set_adapters(["motion"], [0.7])
54
  motion_loaded = motion
55
 
@@ -86,8 +86,8 @@ with gr.Blocks(css="style.css") as demo:
86
  label='Motion',
87
  choices=[
88
  ("Default", ""),
89
- ("Zoom in", "v2_lora_ZoomIn.ckpt"),
90
- ("Zoom out", "v2_lora_ZoomOut.ckpt"),
91
  ],
92
  value="",
93
  interactive=True
 
49
  if motion_loaded != motion:
50
  pipe.unload_lora_weights()
51
  if motion != "":
52
+ pipe.load_lora_weights(motion, adapter_name="motion")
53
  pipe.set_adapters(["motion"], [0.7])
54
  motion_loaded = motion
55
 
 
86
  label='Motion',
87
  choices=[
88
  ("Default", ""),
89
+ ("Zoom in", "guoyww/animatediff-motion-lora-zoom-in"),
90
+ ("Zoom out", "guoyww/animatediff-motion-lora-zoom-out"),
91
  ],
92
  value="",
93
  interactive=True