Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from transformers import pipeline
|
|
| 5 |
#---Models ---
|
| 6 |
#Sentiment: 3-class(neg/neu/pos)
|
| 7 |
sentiment = pipeline("sentiment-analysis", model="ProsusAI/finbert")
|
| 8 |
-
#Marian:
|
| 9 |
translator = pipeline("translation_en_to_zh", model="Helsinki-NLP/opus-mt-en-zh", device=-1)
|
| 10 |
|
| 11 |
LABEL_MAP = {"LABEL_0":"Negative","LABEL_1":"Neutral","LABEL_2":"Positive"}
|
|
|
|
| 5 |
#---Models ---
|
| 6 |
#Sentiment: 3-class(neg/neu/pos)
|
| 7 |
sentiment = pipeline("sentiment-analysis", model="ProsusAI/finbert")
|
| 8 |
+
#Marian:EN->ZH translation (for creating reference EN from Chinese)
|
| 9 |
translator = pipeline("translation_en_to_zh", model="Helsinki-NLP/opus-mt-en-zh", device=-1)
|
| 10 |
|
| 11 |
LABEL_MAP = {"LABEL_0":"Negative","LABEL_1":"Neutral","LABEL_2":"Positive"}
|