Spaces:
Running
Running
jhj0517
commited on
Commit
·
60840eb
1
Parent(s):
0c6f6c3
Fix default value of the words
Browse files
modules/whisper/data_classes.py
CHANGED
@@ -28,7 +28,7 @@ class Segment(BaseModel):
|
|
28 |
avg_logprob: Optional[float] = Field(default=None, description="Average log probability of the tokens")
|
29 |
compression_ratio: Optional[float] = Field(default=None, description="Compression ratio of the segment")
|
30 |
no_speech_prob: Optional[float] = Field(default=None, description="Probability that it's not speech")
|
31 |
-
words: Optional[List['Word']] = Field(default=
|
32 |
|
33 |
@classmethod
|
34 |
def from_faster_whisper(cls,
|
|
|
28 |
avg_logprob: Optional[float] = Field(default=None, description="Average log probability of the tokens")
|
29 |
compression_ratio: Optional[float] = Field(default=None, description="Compression ratio of the segment")
|
30 |
no_speech_prob: Optional[float] = Field(default=None, description="Probability that it's not speech")
|
31 |
+
words: Optional[List['Word']] = Field(default=[], description="List of words contained in the segment")
|
32 |
|
33 |
@classmethod
|
34 |
def from_faster_whisper(cls,
|