shawarmabytes's picture
Update app.py
68de716
raw
history blame
562 Bytes
import streamlit as st
from streamlit_player import st_player
from transformers import pipeline
x = st.slider('Select a value')
st.write(x, 'squared is', x * x)
def tester(text):
#classifier = pipeline("sentiment-analysis", arpanghoshal/EmoRoBERTa)
#classifier = pipeline("sentiment-analysis", model='cardiffnlp/twitter-roberta-base-emotion')
classifier = pipeline("sentiment-analysis", 'j-hartmann/emotion-english-distilroberta-base')
results = classifier(text)
st.write(results)
emo = st.text_input('First name')
tester(emo)