Spaces:
Sleeping
Sleeping
| import streamlit as st | |
| from transformers import pipeline | |
| st.title('Sentence Emotion Teller') | |
| classifier = pipeline(task="text-classification", model="SamLowe/roberta-base-go_emotions", top_k=None) | |
| sentences = st.text_input('Enter Your Sentences') | |
| if st.button('Submit'): | |
| model_outputs = classifier(sentences) | |
| st.write(model_outputs[0]) | |
| # produces a list of dicts for each of the labels | |