Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import streamlit as st
|
2 |
-
from transformers import AutoTokenizer, AutoModelForSequenceClassification, Trainer
|
3 |
|
4 |
model_name = "mrm8488/distilroberta-finetuned-financial-news-sentiment-analysis"
|
5 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
|
|
1 |
import streamlit as st
|
2 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification, Trainer, TextClassificationPipeline
|
3 |
|
4 |
model_name = "mrm8488/distilroberta-finetuned-financial-news-sentiment-analysis"
|
5 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|