Spaces:
Sleeping
Sleeping
Update video2.py
Browse files
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 = "
|
| 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
|