Spaces:
Sleeping
Sleeping
Update app/services/transcription.py
Browse files
app/services/transcription.py
CHANGED
|
@@ -173,13 +173,13 @@ class TranscriptionService:
|
|
| 173 |
for w in seg.words:
|
| 174 |
if not w.word.strip():
|
| 175 |
continue
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
|
|
|
| 181 |
)
|
| 182 |
-
)
|
| 183 |
|
| 184 |
|
| 185 |
return {
|
|
|
|
| 173 |
for w in seg.words:
|
| 174 |
if not w.word.strip():
|
| 175 |
continue
|
| 176 |
+
words.append(
|
| 177 |
+
WordTimestamp(
|
| 178 |
+
word=w.word.strip(),
|
| 179 |
+
start=float(w.start),
|
| 180 |
+
end=float(w.end),
|
| 181 |
+
)
|
| 182 |
)
|
|
|
|
| 183 |
|
| 184 |
|
| 185 |
return {
|