demavior commited on
Commit
978eb8c
·
verified ·
1 Parent(s): e9a8cc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -32,9 +32,6 @@ def transcribe(audio):
32
  if audio_np.ndim == 2:
33
  audio_np = audio_np
34
 
35
- # Ensure the audio data is in the correct format for the pipeline
36
- audio_np = np.expand_dims(audio_np, axis=0)
37
-
38
  pipe = pipeline(
39
  "automatic-speech-recognition",
40
  model="openai/whisper-small",
 
32
  if audio_np.ndim == 2:
33
  audio_np = audio_np
34
 
 
 
 
35
  pipe = pipeline(
36
  "automatic-speech-recognition",
37
  model="openai/whisper-small",