Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,8 @@ from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
|
4 |
import torch
|
5 |
|
6 |
# Load the model and tokenizer from the Hugging Face Hub
|
7 |
-
model = AutoModelForSequenceClassification.from_pretrained("preetidav/
|
8 |
-
tokenizer = AutoTokenizer.from_pretrained("preetidav/
|
9 |
|
10 |
# Function to predict sentiment
|
11 |
def predict_sentiment(text):
|
|
|
4 |
import torch
|
5 |
|
6 |
# Load the model and tokenizer from the Hugging Face Hub
|
7 |
+
model = AutoModelForSequenceClassification.from_pretrained("preetidav/sentimodel")
|
8 |
+
tokenizer = AutoTokenizer.from_pretrained("preetidav/sentimodel")
|
9 |
|
10 |
# Function to predict sentiment
|
11 |
def predict_sentiment(text):
|