Spaces:
Runtime error
Runtime error
added bart-large-mnli
Browse filesFiles changed (2)
- app.py+11-2
- requirements.txt+1
1233445678910111213import streamlit as stimport transformers as t
x = st.slider('Select a value')st.write(x, 'squared is', x * x)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)1234streamlittransformerspandasplotlyapp.py+11-2
requirements.txt+1