LPX55 commited on
Commit
b33ec08
·
verified ·
1 Parent(s): b045883

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -80,9 +80,9 @@ def process_image_to_gif(image, grid_cols_input, grid_rows_input, fps_input):
80
  gif_file = create_gif_imageio(enhanced_frames, fps=fps_input, loop=0)
81
 
82
  # Preview the first frame of the GIF
83
- preview_image = Image.fromarray(enhanced_frames[0])
84
- preview_image.save(os.path.join(GENERATED_FILES_DIR, "preview_frame.png"))
85
- preview_path = os.path.join(GENERATED_FILES_DIR, "preview_frame.png")
86
 
87
  return preview_path, gif_file
88
 
 
80
  gif_file = create_gif_imageio(enhanced_frames, fps=fps_input, loop=0)
81
 
82
  # Preview the first frame of the GIF
83
+ # preview_image = Image.fromarray(enhanced_frames[0])
84
+ # preview_image.save(os.path.join(GENERATED_FILES_DIR, "output_enhanced.gif"))
85
+ preview_path = os.path.join(GENERATED_FILES_DIR, "output_enhanced.gif")
86
 
87
  return preview_path, gif_file
88