sreepathi-ravikumar commited on
Commit
3cfbac1
·
verified ·
1 Parent(s): ecca06c

Update video2.py

Browse files
Files changed (1) hide show
  1. video2.py +1 -1
video2.py CHANGED
@@ -28,7 +28,7 @@ def video_func(id,lines):
28
  if os.path.exists(audio_path):
29
  audio = MP3(audio_path)
30
  duration = audio.info.length
31
- IMAGE_PATH = "images/slide"+str(id)+".png" # Ensure this path is correct
32
  VIDEO_DURATION = duration # seconds
33
  HIGHLIGHT_COLOR = (255, 255, 0) # Yellow highlight
34
  HIGHLIGHT_OPACITY = 0.5 # Semi-transparent
 
28
  if os.path.exists(audio_path):
29
  audio = MP3(audio_path)
30
  duration = audio.info.length
31
+ IMAGE_PATH = os.path.join(IMAGE_DIR,f"slide{id}.png") # Ensure this path is correct
32
  VIDEO_DURATION = duration # seconds
33
  HIGHLIGHT_COLOR = (255, 255, 0) # Yellow highlight
34
  HIGHLIGHT_OPACITY = 0.5 # Semi-transparent