Update app.py
Browse files
app.py
CHANGED
|
@@ -1,10 +1,9 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import soundfile as sf
|
|
|
|
| 3 |
from transformers import pipeline
|
| 4 |
|
| 5 |
-
|
| 6 |
-
model_name = "sami606713/emotion_classification"
|
| 7 |
-
classifier = pipeline("audio-classification", model=model_name)
|
| 8 |
|
| 9 |
# Title and description
|
| 10 |
st.title("Audio Emotion Classification")
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import soundfile as sf
|
| 3 |
+
# Use a pipeline as a high-level helper
|
| 4 |
from transformers import pipeline
|
| 5 |
|
| 6 |
+
pipe = pipeline("audio-classification", model="sami606713/emotion_classification")
|
|
|
|
|
|
|
| 7 |
|
| 8 |
# Title and description
|
| 9 |
st.title("Audio Emotion Classification")
|