Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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",
|