File size: 562 Bytes
dd25b4b
88055ae
 
dd25b4b
 
88055ae
 
 
 
 
 
 
 
 
 
68de716
 
 
88055ae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)