Update main.py
Browse files
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):
|