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

text = st.text_input('First name')