File size: 329 Bytes
a44005d
 
 
197d71a
a44005d
197d71a
a44005d
197d71a
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import streamlit as st
from transformers import pipeline

model="SamLowe/roberta-base-go_emotions"

pipe = pipeline("text-classification", model=model)

input_text = st.text_area('Tell me how your day was and I will guess how you are feeling...')

if input_text:
    classification = pipe(input_text)
    st.json(classification)