fffiloni commited on
Commit
cf58581
1 Parent(s): d1f0576

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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()