Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import streamlit
|
2 |
|
|
|
3 |
# Load model directly
|
4 |
from transformers import AutoProcessor, Wav2Vec2ForSpeechClassification
|
5 |
|
6 |
-
processor = AutoProcessor.from_pretrained("
|
7 |
-
model = Wav2Vec2ForSpeechClassification.from_pretrained("
|
8 |
-
st.write(model)
|
|
|
1 |
import streamlit
|
2 |
|
3 |
+
|
4 |
# Load model directly
|
5 |
from transformers import AutoProcessor, Wav2Vec2ForSpeechClassification
|
6 |
|
7 |
+
processor = AutoProcessor.from_pretrained("r-f/wav2vec-english-speech-emotion-recognition")
|
8 |
+
model = Wav2Vec2ForSpeechClassification.from_pretrained("r-f/wav2vec-english-speech-emotion-recognition")
|
|