dahongj commited on
Commit
4b44a9b
1 Parent(s): 123b344
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,8 +6,8 @@ import torch
6
  def bertweet(data):
7
  specific_model = pipeline(model="finiteautomata/bertweet-base-sentiment-analysis")
8
  result = specific_model(data)
9
- label = result['label']
10
- score = result['score']
11
 
12
  return label, score
13
 
 
6
  def bertweet(data):
7
  specific_model = pipeline(model="finiteautomata/bertweet-base-sentiment-analysis")
8
  result = specific_model(data)
9
+ label = result[0]['label']
10
+ score = result[0]['score']
11
 
12
  return label, score
13