I'm using watson caption converter and I'm getting an indexError list out of range while using jupyter notebook. Any way to fix this error?
Here is the error:
IndexError Traceback (most recent call last)
<ipython-input-2-c505fadd11ee> in <module>
131
132 # formats time for SRT format
--> 133 st_time = format_time(x[2], "srt")
134 en_time = format_time(x[3], "srt")
135
<ipython-input-2-c505fadd11ee> in format_time(time, format)
15 # function to format time for SRT file
16 def format_time(time, format):
---> 17 ms = (str(time).split("."))[1]
18 sec = time
19 min = sec / 60
IndexError: list index out of range