Spaces:
Runtime error
Runtime error
Commit ·
9599096
1
Parent(s): ad9c70d
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,9 +2,9 @@ import torch
|
|
| 2 |
from transformers import Wav2Vec2ForCTC, Wav2Vec2Tokenizer
|
| 3 |
|
| 4 |
# Load the model and tokenizer from the Hugging Face Model Hub
|
| 5 |
-
model_name = "BrendaTellez/
|
| 6 |
-
model = Wav2Vec2ForCTC.from_pretrained(
|
| 7 |
-
tokenizer = Wav2Vec2Tokenizer.from_pretrained(
|
| 8 |
|
| 9 |
# Load the audio file
|
| 10 |
audio_file = "../input/environmental-sound-classification-50/audio/audio/44100/"
|
|
|
|
| 2 |
from transformers import Wav2Vec2ForCTC, Wav2Vec2Tokenizer
|
| 3 |
|
| 4 |
# Load the model and tokenizer from the Hugging Face Model Hub
|
| 5 |
+
model_name = "BrendaTellez/SoundClassification"
|
| 6 |
+
model = Wav2Vec2ForCTC.from_pretrained(model_name)
|
| 7 |
+
tokenizer = Wav2Vec2Tokenizer.from_pretrained(model_name)
|
| 8 |
|
| 9 |
# Load the audio file
|
| 10 |
audio_file = "../input/environmental-sound-classification-50/audio/audio/44100/"
|