Update app.py
Browse files
app.py
CHANGED
|
@@ -1,10 +1,11 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from transformers import pipeline
|
|
|
|
| 3 |
|
| 4 |
-
|
|
|
|
| 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
|