Spaces:
Sleeping
Sleeping
Update video2.py
Browse files27 unmodified lines2829303132333427 unmodified linesif os.path.exists(audio_path):audio = MP3(audio_path)duration = audio.info.lengthIMAGE_PATH = "images/slide"+str(id)+".png" # Ensure this path is correctVIDEO_DURATION = duration # secondsHIGHLIGHT_COLOR = (255, 255, 0) # Yellow highlightHIGHLIGHT_OPACITY = 0.5 # Semi-transparent27 unmodified lines2829303132333427 unmodified linesif os.path.exists(audio_path):audio = MP3(audio_path)duration = audio.info.lengthIMAGE_PATH = os.path.join(IMAGE_DIR,f"slide{id}.png") # Ensure this path is correctVIDEO_DURATION = duration # secondsHIGHLIGHT_COLOR = (255, 255, 0) # Yellow highlightHIGHLIGHT_OPACITY = 0.5 # Semi-transparent
video2.py+1-1