garrettbaber commited on
Commit
689c437
1 Parent(s): 9be3e5a

uses joy intensity model

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,8 +9,8 @@ def formatOutput(modelOutput):
9
 
10
  def processInput(input):
11
  #load model and tokenizer
12
- model = AutoModelForSequenceClassification.from_pretrained("garrettbaber/twitter-roberta-base-fear-intensity")
13
- tokenizer = AutoTokenizer.from_pretrained("garrettbaber/twitter-roberta-base-fear-intensity")
14
  #get tokens
15
  tokens = tokenizer(input, return_tensors="pt")
16
  #pass tokens to model
 
9
 
10
  def processInput(input):
11
  #load model and tokenizer
12
+ model = AutoModelForSequenceClassification.from_pretrained("garrettbaber/twitter-roberta-base-joy-intensity")
13
+ tokenizer = AutoTokenizer.from_pretrained("garrettbaber/twitter-roberta-base-joy-intensity")
14
  #get tokens
15
  tokens = tokenizer(input, return_tensors="pt")
16
  #pass tokens to model