dytYunira commited on
Commit
ed26415
·
verified ·
1 Parent(s): cec2552

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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:ZH->EH 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"}
 
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"}