aach456 commited on
Commit
26ce584
1 Parent(s): f6cb684

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 * 30 # 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=5,
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,