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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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/SoundClassificationCNNRNN"
6
- model = Wav2Vec2ForCTC.from_pretrained(SoundClassificationCNNRNN)
7
- tokenizer = Wav2Vec2Tokenizer.from_pretrained(SoundClassificationCNNRNN)
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/"