Spanicin commited on
Commit
2a8a256
·
verified ·
1 Parent(s): f1d2885

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -48,7 +48,7 @@ def generate_and_export_animation(prompt):
48
  output = pipe(
49
  prompt=prompt,
50
  negative_prompt="bad quality, worse quality, low resolution, blur",
51
- num_frames=48,
52
  guidance_scale=2.0,
53
  num_inference_steps=6
54
  )
@@ -58,7 +58,7 @@ def generate_and_export_animation(prompt):
58
  with tempfile.NamedTemporaryFile(suffix='.mp4', delete=False) as temp_file:
59
  temp_video_path = temp_file.name
60
  print('temp_video_path', temp_video_path)
61
- export_to_video(output.frames[0], temp_video_path)
62
 
63
  with open(temp_video_path, 'rb') as video_file:
64
  video_binary = video_file.read()
 
48
  output = pipe(
49
  prompt=prompt,
50
  negative_prompt="bad quality, worse quality, low resolution, blur",
51
+ num_frames=16,
52
  guidance_scale=2.0,
53
  num_inference_steps=6
54
  )
 
58
  with tempfile.NamedTemporaryFile(suffix='.mp4', delete=False) as temp_file:
59
  temp_video_path = temp_file.name
60
  print('temp_video_path', temp_video_path)
61
+ export_to_video(output.frames, temp_video_path)
62
 
63
  with open(temp_video_path, 'rb') as video_file:
64
  video_binary = video_file.read()