Spaces:
Running
Running
minor changes - changed to sentiment classification
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ from huggingface_hub import InferenceClient
|
|
| 9 |
#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.")
|
| 10 |
|
| 11 |
title = "Sentiment-demo-app"
|
| 12 |
-
description = """This is a very simple demo application for a
|
| 13 |
Please be patient until the demo app is loaded. """
|
| 14 |
|
| 15 |
sentiment = pipeline("text-classification", model='tabularisai/multilingual-sentiment-analysis') #"zero-shot-classification" model='facebook/bart-large-mnli')
|
|
|
|
| 9 |
#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.")
|
| 10 |
|
| 11 |
title = "Sentiment-demo-app"
|
| 12 |
+
description = """This is a very simple demo application for a sentiment 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.
|
| 13 |
Please be patient until the demo app is loaded. """
|
| 14 |
|
| 15 |
sentiment = pipeline("text-classification", model='tabularisai/multilingual-sentiment-analysis') #"zero-shot-classification" model='facebook/bart-large-mnli')
|