Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def log_message(message):
|
|
13 |
print(message)
|
14 |
|
15 |
# Function to add music to video
|
16 |
-
def add_music_to_video(video_path, chunks_folder="chunks", output_path="output_with_music.mp4"):
|
17 |
try:
|
18 |
log_message("Starting add_music_to_video process...")
|
19 |
|
@@ -69,7 +69,7 @@ def process_video(uploaded_video):
|
|
69 |
|
70 |
log_message(f"Uploaded video path: {video_path}")
|
71 |
|
72 |
-
output_video = add_music_to_video(video_path, chunks_folder="
|
73 |
if "Error" in output_video:
|
74 |
return None, "\n".join(debug_logs)
|
75 |
|
|
|
13 |
print(message)
|
14 |
|
15 |
# Function to add music to video
|
16 |
+
def add_music_to_video(video_path, chunks_folder="./chunks", output_path="output_with_music.mp4"):
|
17 |
try:
|
18 |
log_message("Starting add_music_to_video process...")
|
19 |
|
|
|
69 |
|
70 |
log_message(f"Uploaded video path: {video_path}")
|
71 |
|
72 |
+
output_video = add_music_to_video(video_path, chunks_folder="./chunks")
|
73 |
if "Error" in output_video:
|
74 |
return None, "\n".join(debug_logs)
|
75 |
|