Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from transformers import pipeline
|
|
6 |
classifier = pipeline(task="zero-shot-audio-classification", model="mskov/whisper-small-esc50")
|
7 |
# classifier = pipeline(model="mskov/roberta-base-toxicity")
|
8 |
|
9 |
-
audio = "./
|
10 |
classifier(audio, candidate_labels=["Sound of a dog", "Sound of vaccum cleaner", "chewing", "sneezing"])
|
11 |
|
12 |
predicted_label = result[0]["label"]
|
|
|
6 |
classifier = pipeline(task="zero-shot-audio-classification", model="mskov/whisper-small-esc50")
|
7 |
# classifier = pipeline(model="mskov/roberta-base-toxicity")
|
8 |
|
9 |
+
audio = "./candy-bar-chewing.wav"
|
10 |
classifier(audio, candidate_labels=["Sound of a dog", "Sound of vaccum cleaner", "chewing", "sneezing"])
|
11 |
|
12 |
predicted_label = result[0]["label"]
|