fffiloni commited on
Commit
fc8689b
1 Parent(s): f9127d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,7 +17,7 @@ description = "Gradio demo of PyScene scenedetect, to automatically find every s
17
  # —————————————————————————————————————————————————
18
 
19
  # SET INPUTS
20
- video_input = gr.Video(source="upload", format="mp4", label="Video Sequence");
21
 
22
  # —————————————————————————————————————————————————
23
 
@@ -44,7 +44,7 @@ def find_scenes(video_path, threshold=27.0):
44
  #print(scene_list)
45
 
46
  timecodes = []
47
- timecodes.append({"title": filename + ".mp4", "fps": framerate})
48
 
49
  shots = []
50
  stills = []
 
17
  # —————————————————————————————————————————————————
18
 
19
  # SET INPUTS
20
+ video_input = gr.Video(source="upload", format="mp4", label="Video Sequence", mirror_webcam=False);
21
 
22
  # —————————————————————————————————————————————————
23
 
 
44
  #print(scene_list)
45
 
46
  timecodes = []
47
+ timecodes.append({"title": filename + ".mp4", "fps": scene_list[0][0].get_framerate()})
48
 
49
  shots = []
50
  stills = []