Anushkabhat9 commited on
Commit
5abec50
·
verified ·
1 Parent(s): 6892880

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,8 +14,8 @@ def transcribe_audio(sample):
14
  model="openai/whisper-small",
15
  chunk_length_s=30,
16
  )
17
- # prediction = pipe(sample.copy(), batch_size=8)["text"]
18
- prediction = pipe(sample.copy(), batch_size=8, return_timestamps=True)["chunks"]
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