Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -241,7 +241,7 @@ async def concat_story_audio(story: StoryCreationDTO, base_output: str, final_pa
|
|
| 241 |
|
| 242 |
# --- Add SFX for location if available ---
|
| 243 |
if scene.location.path:
|
| 244 |
-
sfx_file = await download_file_from_url(scene.
|
| 245 |
sfx_audio = AudioSegment.from_wav(sfx_file)
|
| 246 |
scene_audio = scene_audio.overlay(sfx_audio)
|
| 247 |
os.remove(sfx_file)
|
|
|
|
| 241 |
|
| 242 |
# --- Add SFX for location if available ---
|
| 243 |
if scene.location.path:
|
| 244 |
+
sfx_file = await download_file_from_url(scene.location.path)
|
| 245 |
sfx_audio = AudioSegment.from_wav(sfx_file)
|
| 246 |
scene_audio = scene_audio.overlay(sfx_audio)
|
| 247 |
os.remove(sfx_file)
|