Spaces:
Running
on
Zero
Running
on
Zero
File size: 448 Bytes
1d7163f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
class TranscribeResult:
"""
Each TranscribeResult object represents one SRT line.
"""
def __init__(self, text: str, start_time: float, end_time: float):
self.text = text
self.start_time = start_time
self.end_time = end_time
def __str__(self):
return f"TranscribeResult(text={self.text}, start_time={self.start_time}, end_time={self.end_time})"
def __repr__(self):
return str(self)
|