multimodalart HF Staff commited on
Commit
b11d0d2
·
verified ·
1 Parent(s): 1b75f51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -80,10 +80,10 @@ def handle_image_upload_for_dims_wan(uploaded_pil_image, current_h_val, current_
80
  return gr.update(value=DEFAULT_H_SLIDER_VALUE), gr.update(value=DEFAULT_W_SLIDER_VALUE)
81
 
82
  def get_duration(input_image, prompt, height, width,
83
- negative_prompt=default_negative_prompt, duration_seconds = 2,
84
- guidance_scale = 1, steps = 4,
85
- seed = 42, randomize_seed = False,
86
- progress=gr.Progress(track_tqdm=True)):
87
  if steps > 4 and duration_seconds > 2:
88
  return 90
89
  elif steps > 4 or duration_seconds > 2:
 
80
  return gr.update(value=DEFAULT_H_SLIDER_VALUE), gr.update(value=DEFAULT_W_SLIDER_VALUE)
81
 
82
  def get_duration(input_image, prompt, height, width,
83
+ negative_prompt=default_negative_prompt, duration_seconds,
84
+ guidance_scale, steps,
85
+ seed, randomize_seed,
86
+ progress):
87
  if steps > 4 and duration_seconds > 2:
88
  return 90
89
  elif steps > 4 or duration_seconds > 2: