sami606713 commited on
Commit
6dcf668
·
verified ·
1 Parent(s): db862ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,10 +1,9 @@
1
  import streamlit as st
2
  import soundfile as sf
 
3
  from transformers import pipeline
4
 
5
- # Load your fine-tuned audio emotion classification model
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")