Update app.py
Browse files
app.py
CHANGED
@@ -58,6 +58,7 @@ css = """
|
|
58 |
display: none !important;
|
59 |
}
|
60 |
"""
|
|
|
61 |
# Function to save feedback or provide access to the database file
|
62 |
def handle_feedback(feedback):
|
63 |
feedback = feedback.strip() # Clean up leading/trailing whitespace
|
@@ -79,6 +80,7 @@ def handle_feedback(feedback):
|
|
79 |
# Configure logging
|
80 |
logging.basicConfig(level=logging.DEBUG, format="%(asctime)s - %(levelname)s - %(message)s")
|
81 |
logger = logging.getLogger(__name__)
|
|
|
82 |
|
83 |
def list_available_fonts():
|
84 |
try:
|
@@ -246,7 +248,8 @@ def replace_audio_in_video(video_path, new_audio_path, final_video_path):
|
|
246 |
|
247 |
video = VideoFileClip(video_path)
|
248 |
new_audio = AudioFileClip(new_audio_path)
|
249 |
-
|
|
|
250 |
# Set the new audio
|
251 |
video = video.set_audio(new_audio)
|
252 |
|
|
|
58 |
display: none !important;
|
59 |
}
|
60 |
"""
|
61 |
+
|
62 |
# Function to save feedback or provide access to the database file
|
63 |
def handle_feedback(feedback):
|
64 |
feedback = feedback.strip() # Clean up leading/trailing whitespace
|
|
|
80 |
# Configure logging
|
81 |
logging.basicConfig(level=logging.DEBUG, format="%(asctime)s - %(levelname)s - %(message)s")
|
82 |
logger = logging.getLogger(__name__)
|
83 |
+
logger.info(f"MoviePy Version: {moviepy.__version__}")
|
84 |
|
85 |
def list_available_fonts():
|
86 |
try:
|
|
|
248 |
|
249 |
video = VideoFileClip(video_path)
|
250 |
new_audio = AudioFileClip(new_audio_path)
|
251 |
+
logger.info(f"Methods available in VideoFileClip: {dir(video)}")
|
252 |
+
|
253 |
# Set the new audio
|
254 |
video = video.set_audio(new_audio)
|
255 |
|