sentivity commited on
Commit
583f11d
·
verified ·
1 Parent(s): ddf7c1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,7 +51,7 @@ def preprocess_text(text):
51
  def predict_sentiment(text):
52
  if not text:
53
  return 0.0
54
- text = preprocess(text)
55
  encoded_input = tokenizer(text, return_tensors='pt')
56
  output = model(**encoded_input)
57
  scores = output[0][0].detach().numpy()
 
51
  def predict_sentiment(text):
52
  if not text:
53
  return 0.0
54
+ text = preprocess_text(text)
55
  encoded_input = tokenizer(text, return_tensors='pt')
56
  output = model(**encoded_input)
57
  scores = output[0][0].detach().numpy()