saq1b commited on
Commit
f584e07
·
verified ·
1 Parent(s): ef7025b

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -0
main.py CHANGED
@@ -119,6 +119,9 @@ async def create_slideshow(image_paths, audio_path, output_path, duration, zoom=
119
  if os.path.exists(concat_file):
120
  os.remove(concat_file)
121
  return False
 
 
 
122
 
123
  @app.post("/make_slideshow")
124
  async def make_slideshow(request: SlideshowRequest):
 
119
  if os.path.exists(concat_file):
120
  os.remove(concat_file)
121
  return False
122
+ except Exception as e:
123
+ print(f"Error creating slideshow: {str(e)}")
124
+ return False
125
 
126
  @app.post("/make_slideshow")
127
  async def make_slideshow(request: SlideshowRequest):