sentivity commited on
Commit
b2eeaef
·
verified ·
1 Parent(s): 158ea16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -56,8 +56,8 @@ def predict_sentiment(text):
56
  score = score_model(input_ids, attention_mask)[0].item()
57
 
58
  scaled=score*100
59
- k = 10
60
- midpoint = 0.6
61
 
62
  scaled_score = 1 / (1 + np.exp(-k * (score - midpoint)))
63
  final_output = scaled_score * 100
 
56
  score = score_model(input_ids, attention_mask)[0].item()
57
 
58
  scaled=score*100
59
+ k = 20
60
+ midpoint = 0.7
61
 
62
  scaled_score = 1 / (1 + np.exp(-k * (score - midpoint)))
63
  final_output = scaled_score * 100