fixed __str__
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import json
|
||||
|
||||
from sympy import Segment
|
||||
|
||||
ALPHABET = [*"abcdefghijklmnopqrstuvwxyz"]
|
||||
|
||||
|
||||
@@ -81,7 +83,9 @@ class Transcript:
|
||||
else:
|
||||
speaker = seq["speaker"]
|
||||
|
||||
fstring += f"{speaker} {seq}: {seq['text']}\n"
|
||||
segm = seq["segment"]
|
||||
|
||||
fstring += f"{speaker} {segm}: {seq['text']}\n"
|
||||
return fstring
|
||||
|
||||
def __repr__(self) -> str:
|
||||
|
||||
Reference in New Issue
Block a user