Nattyboi commited on
Commit
00956db
1 Parent(s): 8e30976

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.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")