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