app.py
CHANGED
|
@@ -3,7 +3,7 @@ from transformers import pipeline
|
|
| 3 |
|
| 4 |
# Load model - use the correct Hugging Face model ID
|
| 5 |
# Remove the '/spaces/' prefix and use just the username/model-name format
|
| 6 |
-
classifier = pipeline("audio-classification", model="Hnin/
|
| 7 |
|
| 8 |
def predict(audio):
|
| 9 |
if audio is None:
|
|
|
|
| 3 |
|
| 4 |
# Load model - use the correct Hugging Face model ID
|
| 5 |
# Remove the '/spaces/' prefix and use just the username/model-name format
|
| 6 |
+
classifier = pipeline("audio-classification", model="Hnin/wav2vec2-base-finetuned-ks")
|
| 7 |
|
| 8 |
def predict(audio):
|
| 9 |
if audio is None:
|