Thao Pham
commited on
Commit
·
301565c
1
Parent(s):
f33d0ed
update utils.py
Browse files
utils.py
CHANGED
@@ -9,7 +9,6 @@ import cv2
|
|
9 |
import json
|
10 |
import textwrap
|
11 |
|
12 |
-
|
13 |
# helper function for convert time in second to time format for .vtt or .srt file
|
14 |
def format_timestamp(seconds: float, always_include_hours: bool = False, fractionalSeperator: str = '.'):
|
15 |
assert seconds >= 0, "non-negative timestamp expected"
|
|
|
9 |
import json
|
10 |
import textwrap
|
11 |
|
|
|
12 |
# helper function for convert time in second to time format for .vtt or .srt file
|
13 |
def format_timestamp(seconds: float, always_include_hours: bool = False, fractionalSeperator: str = '.'):
|
14 |
assert seconds >= 0, "non-negative timestamp expected"
|