dagloop5 commited on
Commit
8afe5a0
·
verified ·
1 Parent(s): e8273a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -32
app.py CHANGED
@@ -606,38 +606,7 @@ def on_highres_toggle(first_image, last_image, high_res):
606
  return gr.update(value=w), gr.update(value=h)
607
 
608
 
609
- def get_gpu_duration(
610
- first_image,
611
- last_image,
612
- input_audio,
613
- prompt: str,
614
- duration: float,
615
- gpu_duration: float,
616
- enhance_prompt: bool = True,
617
- seed: int = 42,
618
- randomize_seed: bool = True,
619
- height: int = 1024,
620
- width: int = 1536,
621
- pose_strength: float = 0.0,
622
- general_strength: float = 0.0,
623
- motion_strength: float = 0.0,
624
- dreamlay_strength: float = 0.0,
625
- mself_strength: float = 0.0,
626
- dramatic_strength: float = 0.0,
627
- fluid_strength: float = 0.0,
628
- liquid_strength: float = 0.0,
629
- demopose_strength: float = 0.0,
630
- voice_strength: float = 0.0,
631
- realism_strength: float = 0.0,
632
- transition_strength: float = 0.0,
633
- physics_strength: float = 0.0,
634
- reasoning_strength: float = 0.0,
635
- twostep_strength: float = 0.0,
636
- progress=None,
637
- ):
638
- return int(gpu_duration)
639
-
640
- @spaces.GPU(duration=get_gpu_duration)
641
  @torch.inference_mode()
642
  def generate_video(
643
  first_image,
 
606
  return gr.update(value=w), gr.update(value=h)
607
 
608
 
609
+ @spaces.GPU(duration=gpu_duration)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
610
  @torch.inference_mode()
611
  def generate_video(
612
  first_image,