Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,8 +36,8 @@ def sentiment_analysis(sentence, model_name):
|
|
| 36 |
"CCCC/RoBERTa_English_FinancialNews_tuned":"roberta",
|
| 37 |
}
|
| 38 |
|
| 39 |
-
tokenizer = AutoTokenizer.from_pretrained("facebook/nllb-
|
| 40 |
-
model = AutoModelForSeq2SeqLM.from_pretrained("facebook/nllb-
|
| 41 |
|
| 42 |
batched_input = ['We now have 4-month-old mice that are non-diabetic that used to be diabetic," he added.',
|
| 43 |
"Dr. Ehud Ur, professor of medicine at Dalhousie University in Halifax, Nova Scotia and chair of the clinical and scientific division of the Canadian Diabetes Association cautioned that the research is still in its early days."
|
|
|
|
| 36 |
"CCCC/RoBERTa_English_FinancialNews_tuned":"roberta",
|
| 37 |
}
|
| 38 |
|
| 39 |
+
tokenizer = AutoTokenizer.from_pretrained("facebook/nllb-200-distilled-600M")
|
| 40 |
+
model = AutoModelForSeq2SeqLM.from_pretrained("facebook/nllb-200-distilled-600M")
|
| 41 |
|
| 42 |
batched_input = ['We now have 4-month-old mice that are non-diabetic that used to be diabetic," he added.',
|
| 43 |
"Dr. Ehud Ur, professor of medicine at Dalhousie University in Halifax, Nova Scotia and chair of the clinical and scientific division of the Canadian Diabetes Association cautioned that the research is still in its early days."
|