Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def video_func(id,lines):
|
|
21 |
if os.path.exists(filename):
|
22 |
audio = MP3(filename)
|
23 |
duration = audio.info.length
|
24 |
-
IMAGE_PATH = "images/slide"+str(id)+".png" # Ensure this path is correct
|
25 |
VIDEO_DURATION = duration # seconds
|
26 |
HIGHLIGHT_COLOR = (255, 255, 0) # Yellow highlight
|
27 |
HIGHLIGHT_OPACITY = 0.5 # Semi-transparent
|
|
|
21 |
if os.path.exists(filename):
|
22 |
audio = MP3(filename)
|
23 |
duration = audio.info.length
|
24 |
+
IMAGE_PATH = "/tmp/images/slide"+str(id)+".png" # Ensure this path is correct
|
25 |
VIDEO_DURATION = duration # seconds
|
26 |
HIGHLIGHT_COLOR = (255, 255, 0) # Yellow highlight
|
27 |
HIGHLIGHT_OPACITY = 0.5 # Semi-transparent
|