Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def load_video(vid):
|
|
34 |
frame_count = int(capture.get(cv2.CAP_PROP_FRAME_COUNT))
|
35 |
msc = float(frame_count/fps)
|
36 |
capture.release()
|
37 |
-
vid_t =
|
38 |
hours = int(vid_t/360)
|
39 |
minutes = int(vid_t/60)-(hours*360)
|
40 |
seconds = vid_t-(minutes*60)-(hours*360)
|
|
|
34 |
frame_count = int(capture.get(cv2.CAP_PROP_FRAME_COUNT))
|
35 |
msc = float(frame_count/fps)
|
36 |
capture.release()
|
37 |
+
vid_t = float(msc)
|
38 |
hours = int(vid_t/360)
|
39 |
minutes = int(vid_t/60)-(hours*360)
|
40 |
seconds = vid_t-(minutes*60)-(hours*360)
|