Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ st.header("Sentiment Analysis")
|
|
6 |
st.subheader("Input text. Submit. The machine will classify the text as positive, negative and neutral and display probabilities.")
|
7 |
st.caption("Input text and press control + enter.")
|
8 |
|
9 |
-
classifier = pipeline("zero-shot
|
10 |
|
11 |
text = st.text_area("Input text and press control + enter.")
|
12 |
candidate_labels = ['positive', 'negative', 'neutral']
|
|
|
6 |
st.subheader("Input text. Submit. The machine will classify the text as positive, negative and neutral and display probabilities.")
|
7 |
st.caption("Input text and press control + enter.")
|
8 |
|
9 |
+
classifier = pipeline("zero-shot-classification", model='facebook/bart-large-mnli')
|
10 |
|
11 |
text = st.text_area("Input text and press control + enter.")
|
12 |
candidate_labels = ['positive', 'negative', 'neutral']
|