Spaces:
Running
Running
File size: 340 Bytes
0700cb3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from typing import Annotated, Optional, TypeAlias, TypedDict
import annotated_types
Category: TypeAlias = Annotated[int, annotated_types.Ge(0), annotated_types.Le(4)]
PositiveFloat: TypeAlias = Annotated[float, annotated_types.Ge(0)]
class ParsedWordInfo(TypedDict):
word: str
start_ts: PositiveFloat
end_ts: PositiveFloat
|