johnowhitaker commited on
Commit
b143835
1 Parent(s): ca4486e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -29,6 +29,7 @@ MODEL = 'cardiffnlp/twitter-roberta-base-sentiment'
29
  tokenizer = AutoTokenizer.from_pretrained(MODEL)
30
  model = AutoModelForSequenceClassification.from_pretrained(MODEL)
31
  model.save_pretrained(MODEL)
 
32
 
33
  # Func to get a score using the above model
34
  def combined_score(text):
 
29
  tokenizer = AutoTokenizer.from_pretrained(MODEL)
30
  model = AutoModelForSequenceClassification.from_pretrained(MODEL)
31
  model.save_pretrained(MODEL)
32
+ tokenizer.save_pretrained(MODEL)
33
 
34
  # Func to get a score using the above model
35
  def combined_score(text):