Spaces:
Runtime error
Runtime error
Update model
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ st.header("Sentiment-demo-app")
|
|
| 6 |
st.subheader("Please be patient and wait up to a minute until the demo app is loaded.")
|
| 7 |
st.caption("This is a very simple demo application for a zero-shot classification pipeline to classify positive, neutral, or negative sentiment for a short text. Enter your text in the box below and press CTRl+ENTER to run the model.")
|
| 8 |
|
| 9 |
-
classifier = pipeline("zero-shot-classification", model='facebook/bart-large-mnli')
|
| 10 |
|
| 11 |
text = st.text_area('Enter text here!')
|
| 12 |
candidate_labels = ['Positive', 'Neutral', 'Negative']
|
|
|
|
| 6 |
st.subheader("Please be patient and wait up to a minute until the demo app is loaded.")
|
| 7 |
st.caption("This is a very simple demo application for a zero-shot classification pipeline to classify positive, neutral, or negative sentiment for a short text. Enter your text in the box below and press CTRl+ENTER to run the model.")
|
| 8 |
|
| 9 |
+
classifier = pipeline("zero-shot-classification", model='tabularisai/multilingual-sentiment-analysis') #model='facebook/bart-large-mnli')
|
| 10 |
|
| 11 |
text = st.text_area('Enter text here!')
|
| 12 |
candidate_labels = ['Positive', 'Neutral', 'Negative']
|