Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,8 @@ def transcribe_audio(sample):
|
|
14 |
model="openai/whisper-small",
|
15 |
chunk_length_s=30,
|
16 |
)
|
17 |
-
|
18 |
-
|
19 |
return prediction
|
20 |
|
21 |
# we can also return timestamps for the predictions
|
|
|
14 |
model="openai/whisper-small",
|
15 |
chunk_length_s=30,
|
16 |
)
|
17 |
+
prediction = pipe(sample.copy(), batch_size=8)["text"]
|
18 |
+
#prediction = pipe(sample, batch_size=8, return_timestamps=True)["chunks"]
|
19 |
return prediction
|
20 |
|
21 |
# we can also return timestamps for the predictions
|