candenizkocak
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
|
|
4 |
from datasets import load_dataset, Audio
|
5 |
|
6 |
# Load your model
|
7 |
-
classifier = pipeline("audio-classification", model="candenizkocak/
|
8 |
|
9 |
# Function to resample audio to 16kHz
|
10 |
def resample_audio(audio_file, target_sampling_rate=16000):
|
|
|
4 |
from datasets import load_dataset, Audio
|
5 |
|
6 |
# Load your model
|
7 |
+
classifier = pipeline("audio-classification", model="candenizkocak/wav2vec2_turkish_gender_classification")
|
8 |
|
9 |
# Function to resample audio to 16kHz
|
10 |
def resample_audio(audio_file, target_sampling_rate=16000):
|