Spaces:
Runtime error
Runtime error
minor changes
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ st.caption("This is a very simple demo application for a zero-shot classificatio
|
|
| 8 |
|
| 9 |
pipe = pipeline("text-classification", model='tabularisai/multilingual-sentiment-analysis') #"zero-shot-classification" model='facebook/bart-large-mnli')
|
| 10 |
|
| 11 |
-
|
| 12 |
#candidate_labels = ['Positive', 'Neutral', 'Negative']
|
| 13 |
result = pipe(texts)
|
| 14 |
|
|
|
|
| 8 |
|
| 9 |
pipe = pipeline("text-classification", model='tabularisai/multilingual-sentiment-analysis') #"zero-shot-classification" model='facebook/bart-large-mnli')
|
| 10 |
|
| 11 |
+
texts = st.text_area('Enter text here!')
|
| 12 |
#candidate_labels = ['Positive', 'Neutral', 'Negative']
|
| 13 |
result = pipe(texts)
|
| 14 |
|