Srisamorn commited on
Commit
2d4fdfd
·
1 Parent(s): 059e4d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,10 +1,11 @@
1
  import streamlit as st
2
  from transformers import pipeline
 
3
 
4
- classifier = pipeline("sentiment-analysis", model="Donlapark/finetuned_yelp")
 
5
  def main():
6
  st.title("Yelp review")
7
-
8
  with st.form("text_field"):
9
  text = st.text_area('enter some text:')
10
  # clicked==True only when the button is clicked
 
1
  import streamlit as st
2
  from transformers import pipeline
3
+ from datasets import load_dataset
4
 
5
+ audio_classifier = pipeline(
6
+ task="audio-classification", model="ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition"
7
  def main():
8
  st.title("Yelp review")
 
9
  with st.form("text_field"):
10
  text = st.text_area('enter some text:')
11
  # clicked==True only when the button is clicked