Spanicin commited on
Commit
553e650
1 Parent(s): b325d6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,7 +35,7 @@ def download_pipeline():
35
  print(f"Error downloading pipeline: {e}")
36
  return False
37
 
38
- def generate_and_export_animation(frames_list, temp_video_path):
39
  # Convert PIL images to numpy arrays
40
  frames_np = [np.array(frame) for frame in frames_list]
41
 
@@ -80,7 +80,7 @@ def generate_and_export_animation(prompt):
80
  temp_video_path = temp_file.name
81
  print('temp_video_path', temp_video_path)
82
  # export_to_video(output.frames[0], temp_video_path)
83
- generate_and_export_animation(output.frames[0], temp_video_path)
84
 
85
  with open(temp_video_path, 'rb') as video_file:
86
  video_binary = video_file.read()
 
35
  print(f"Error downloading pipeline: {e}")
36
  return False
37
 
38
+ def export_video(frames_list, temp_video_path):
39
  # Convert PIL images to numpy arrays
40
  frames_np = [np.array(frame) for frame in frames_list]
41
 
 
80
  temp_video_path = temp_file.name
81
  print('temp_video_path', temp_video_path)
82
  # export_to_video(output.frames[0], temp_video_path)
83
+ export_video(output.frames[0], temp_video_path)
84
 
85
  with open(temp_video_path, 'rb') as video_file:
86
  video_binary = video_file.read()