Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
|
| 2 |
import streamlit as st
|
| 3 |
import torch
|
| 4 |
|
| 5 |
-
# Load tokenizer and model from Hugging Face
|
| 6 |
tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/twitter-roberta-base-sentiment")
|
| 7 |
model = AutoModelForSequenceClassification.from_pretrained("cardiffnlp/twitter-roberta-base-sentiment")
|
| 8 |
|
|
|
|
| 2 |
import streamlit as st
|
| 3 |
import torch
|
| 4 |
|
| 5 |
+
# Load tokenizer and model from Hugging Face
|
| 6 |
tokenizer = AutoTokenizer.from_pretrained("cardiffnlp/twitter-roberta-base-sentiment")
|
| 7 |
model = AutoModelForSequenceClassification.from_pretrained("cardiffnlp/twitter-roberta-base-sentiment")
|
| 8 |
|