Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -339,7 +339,7 @@ async def concat_story_audio(story: StoryCreationDTO, base_output: str, final_pa
|
|
| 339 |
|
| 340 |
# Adjust volume
|
| 341 |
bg_audio = bg_audio - (1 - scene.bgMusic.volume) * 30 # approximate
|
| 342 |
-
bg_audio = bg_audio -
|
| 343 |
# Loop if shorter than scene
|
| 344 |
if len(bg_audio) < len(scene_audio):
|
| 345 |
loops = (len(scene_audio) // len(bg_audio)) + 1
|
|
|
|
| 339 |
|
| 340 |
# Adjust volume
|
| 341 |
bg_audio = bg_audio - (1 - scene.bgMusic.volume) * 30 # approximate
|
| 342 |
+
bg_audio = bg_audio - 15
|
| 343 |
# Loop if shorter than scene
|
| 344 |
if len(bg_audio) < len(scene_audio):
|
| 345 |
loops = (len(scene_audio) // len(bg_audio)) + 1
|