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