Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -71,14 +71,14 @@ def process_video(uploaded_video):
|
|
71 |
|
72 |
output_video = add_music_to_video(video_path, chunks_folder="./chunks")
|
73 |
if "Error" in output_video:
|
74 |
-
return None
|
75 |
|
76 |
-
return output_video
|
77 |
except Exception as e:
|
78 |
error_message = f"Error in process_video: {str(e)}"
|
79 |
log_message(error_message)
|
80 |
traceback.print_exc()
|
81 |
-
return None
|
82 |
|
83 |
# Gradio Interface with more nature and music-themed emojis
|
84 |
interface = gr.Interface(
|
@@ -86,7 +86,6 @@ interface = gr.Interface(
|
|
86 |
inputs=gr.Video(label="πΏ Upload Your Video π±"),
|
87 |
outputs=[
|
88 |
gr.Video(label="πΆ Your Video with Nature's Vibes π³π§"),
|
89 |
-
gr.Textbox(label="π Debug Logs π")
|
90 |
],
|
91 |
title="Create Nature Vibes πΏππΆ",
|
92 |
description="π³π» Upload a video, and this app will add a 10-second nature-inspired background music track πΆ that matches the video duration πΏπ. Let the natural vibes flow! π§"
|
|
|
71 |
|
72 |
output_video = add_music_to_video(video_path, chunks_folder="./chunks")
|
73 |
if "Error" in output_video:
|
74 |
+
return None
|
75 |
|
76 |
+
return output_video
|
77 |
except Exception as e:
|
78 |
error_message = f"Error in process_video: {str(e)}"
|
79 |
log_message(error_message)
|
80 |
traceback.print_exc()
|
81 |
+
return None
|
82 |
|
83 |
# Gradio Interface with more nature and music-themed emojis
|
84 |
interface = gr.Interface(
|
|
|
86 |
inputs=gr.Video(label="πΏ Upload Your Video π±"),
|
87 |
outputs=[
|
88 |
gr.Video(label="πΆ Your Video with Nature's Vibes π³π§"),
|
|
|
89 |
],
|
90 |
title="Create Nature Vibes πΏππΆ",
|
91 |
description="π³π» Upload a video, and this app will add a 10-second nature-inspired background music track πΆ that matches the video duration πΏπ. Let the natural vibes flow! π§"
|