demavior commited on
Commit
5018787
·
verified ·
1 Parent(s): 9dba37d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -32,6 +32,10 @@ def transcribe(audio):
32
  if audio_np.ndim == 2:
33
  audio_np = audio_np
34
 
 
 
 
 
35
  pipe = pipeline(
36
  "automatic-speech-recognition",
37
  model="openai/whisper-small",
 
32
  if audio_np.ndim == 2:
33
  audio_np = audio_np
34
 
35
+ # Debugging: Print the shape and type of the audio data
36
+ print(f"Audio data shape: {audio_np.shape}")
37
+ print(f"Audio data type: {audio_np.dtype}")
38
+
39
  pipe = pipeline(
40
  "automatic-speech-recognition",
41
  model="openai/whisper-small",