BrendaTellez commited on
Commit
f17f0ae
·
1 Parent(s): 9599096

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,8 +3,8 @@ 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/"
 
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, use_auth_token=True)
7
+ tokenizer = Wav2Vec2Tokenizer.from_pretrained(model_name, use_auth_token=True)
8
 
9
  # Load the audio file
10
  audio_file = "../input/environmental-sound-classification-50/audio/audio/44100/"