preetidav commited on
Commit
3136a6a
·
verified ·
1 Parent(s): e7ebc2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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/sentimodel")
8
- tokenizer = AutoTokenizer.from_pretrained("preetidav/sentimodel")
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/sentomodel")
8
+ tokenizer = AutoTokenizer.from_pretrained("preetidav/sentomodel")
9
 
10
  # Function to predict sentiment
11
  def predict_sentiment(text):