File size: 311 Bytes
a97191b
 
7850de7
00956db
 
 
7850de7
 
1
2
3
4
5
6
7
8
import streamlit


# Load model directly
from transformers import AutoProcessor, Wav2Vec2ForSpeechClassification

processor = AutoProcessor.from_pretrained("r-f/wav2vec-english-speech-emotion-recognition")
model = Wav2Vec2ForSpeechClassification.from_pretrained("r-f/wav2vec-english-speech-emotion-recognition")