caarleexx commited on
Commit
504e476
·
verified ·
1 Parent(s): fc95505

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -38,11 +38,9 @@ def run_generate_low(prompt, neg_prompt, start_img, height, width, duration, cfg
38
  print("UI: Chamando generate_low")
39
  if True:
40
 
41
- conditioning_items = []
42
  if start_img:
43
- num_frames_estimate = int(duration * 24)
44
- items_list = [[start_img, 0, 1.0]]
45
- conditioning_items = video_generation_service._prepare_condition_items(items_list, height, width)
46
 
47
 
48
  used_seed = None if randomize_seed else seed
@@ -51,7 +49,7 @@ def run_generate_low(prompt, neg_prompt, start_img, height, width, duration, cfg
51
  prompt=prompt, negative_prompt=neg_prompt,
52
  height=height, width=width, duration_secs=duration,
53
  guidance_scale=cfg, seed=used_seed,
54
- conditioning_items=conditioning_items
55
  )
56
 
57
  new_state = {
 
38
  print("UI: Chamando generate_low")
39
  if True:
40
 
41
+ image_filepaths = []
42
  if start_img:
43
+ image_filepaths.append(start_img)
 
 
44
 
45
 
46
  used_seed = None if randomize_seed else seed
 
49
  prompt=prompt, negative_prompt=neg_prompt,
50
  height=height, width=width, duration_secs=duration,
51
  guidance_scale=cfg, seed=used_seed,
52
+ image_filepaths=image_filepaths
53
  )
54
 
55
  new_state = {