Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import torch
|
|
| 6 |
import soundfile as sf
|
| 7 |
import librosa
|
| 8 |
|
| 9 |
-
pipe1 = pipeline("automatic-speech-recognition", model="openai/whisper-base"
|
| 10 |
|
| 11 |
def audio_to_text(audio):
|
| 12 |
# Check if audio is a tuple of (sample_rate, numpy_array)
|
|
|
|
| 6 |
import soundfile as sf
|
| 7 |
import librosa
|
| 8 |
|
| 9 |
+
pipe1 = pipeline("automatic-speech-recognition", model="openai/whisper-base")
|
| 10 |
|
| 11 |
def audio_to_text(audio):
|
| 12 |
# Check if audio is a tuple of (sample_rate, numpy_array)
|