Update app.py
Browse files
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 |
-
|
| 42 |
if start_img:
|
| 43 |
-
|
| 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 |
-
|
| 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 = {
|