jfforero commited on
Commit
ac02da5
1 Parent(s): 6fd1c6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ model_size = "small"
30
  # Run on GPU with FP16
31
  model2 = WhisperModel(model_size, device="cpu", compute_type="int8")
32
 
33
- def transcribe(audio):
34
  segments, _ = model2.transcribe(audio, beam_size=5)
35
  return "".join([segment.text for segment in segments])
36
 
 
30
  # Run on GPU with FP16
31
  model2 = WhisperModel(model_size, device="cpu", compute_type="int8")
32
 
33
+ def transcribe(wav_filepath):
34
  segments, _ = model2.transcribe(audio, beam_size=5)
35
  return "".join([segment.text for segment in segments])
36