kyled's picture
added bart-large-mnli
4d85e89
raw
history blame
450 Bytes
import streamlit as st
import transformers as t
st.title("Phrase Feeling Analysis")
classifier = t.pipeline("zero-shot-classification",
model="facebook/bart-large-mnli")
x = st.text_input("Enter your title here:")
candidate_labels = ['anger', 'sadness', 'fear', 'joy', 'interest',
'surprise', 'disgust', 'shame', 'guilt', 'compassion', 'other']
output = classifier(x, candidate_labels)
st.write(output)