Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import torchaudio
|
|
3 |
from transformers import pipeline
|
4 |
|
5 |
# Load your model
|
6 |
-
classifier = pipeline("audio-classification", model="Ahmed107/wav2vec2-base-eos-
|
7 |
|
8 |
# Function to resample audio to 16kHz and convert to mono if needed
|
9 |
def resample_audio(audio_file, target_sampling_rate=16000):
|
|
|
3 |
from transformers import pipeline
|
4 |
|
5 |
# Load your model
|
6 |
+
classifier = pipeline("audio-classification", model="Ahmed107/wav2vec2-base-eos-v5-mulaw-eos-v5-mulaw")
|
7 |
|
8 |
# Function to resample audio to 16kHz and convert to mono if needed
|
9 |
def resample_audio(audio_file, target_sampling_rate=16000):
|