Update app.py
Browse files
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, "
|
85 |
-
preview_path = os.path.join(GENERATED_FILES_DIR, "
|
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 |
|