Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def convert_to_tuple(list):
|
|
| 28 |
def find_scenes(video_path, threshold=27.0):
|
| 29 |
# file name without extension
|
| 30 |
print(os.path.splitext(video_path)[0])
|
| 31 |
-
filename = os.path.splitext(video_path)[0]
|
| 32 |
# Open our video, create a scene manager, and add a detector.
|
| 33 |
video = open_video(video_path)
|
| 34 |
scene_manager = SceneManager()
|
|
|
|
| 28 |
def find_scenes(video_path, threshold=27.0):
|
| 29 |
# file name without extension
|
| 30 |
print(os.path.splitext(video_path)[0])
|
| 31 |
+
filename = os.path.splitext(os.path.basename(video_path))[0]
|
| 32 |
# Open our video, create a scene manager, and add a detector.
|
| 33 |
video = open_video(video_path)
|
| 34 |
scene_manager = SceneManager()
|