Update app.py
Browse files
app.py
CHANGED
@@ -22,13 +22,13 @@ def generate_video(image, prompt, negative_prompt, video_length):
|
|
22 |
|
23 |
# Generate frames with progress tracking
|
24 |
frames = []
|
25 |
-
total_frames = video_length *
|
26 |
|
27 |
for i in range(total_frames):
|
28 |
frame = pipeline(
|
29 |
prompt=prompt,
|
30 |
image=image,
|
31 |
-
num_inference_steps=
|
32 |
negative_prompt=negative_prompt,
|
33 |
guidance_scale=9.0,
|
34 |
generator=generator,
|
|
|
22 |
|
23 |
# Generate frames with progress tracking
|
24 |
frames = []
|
25 |
+
total_frames = video_length * 20 # Assuming 30 frames per second
|
26 |
|
27 |
for i in range(total_frames):
|
28 |
frame = pipeline(
|
29 |
prompt=prompt,
|
30 |
image=image,
|
31 |
+
num_inference_steps=1,
|
32 |
negative_prompt=negative_prompt,
|
33 |
guidance_scale=9.0,
|
34 |
generator=generator,
|