Nattyboi commited on
Commit
be03bf1
1 Parent(s): 4689ea4

Create main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -0
main.py ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # Load model directly
2
+ from transformers import AutoProcessor, Wav2Vec2ForSpeechClassification
3
+
4
+ processor = AutoProcessor.from_pretrained("harshit345/xlsr-wav2vec-speech-emotion-recognition")
5
+ model = Wav2Vec2ForSpeechClassification.from_pretrained("harshit345/xlsr-wav2vec-speech-emotion-recognition")