KrizTech100 commited on
Commit
d98d1eb
·
verified ·
1 Parent(s): 5d5fe06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def analyze_sentiment(text):
47
  with torch.no_grad():
48
  logits = sentiment_model(**inputs).logits
49
  probs = F.softmax(logits, dim=-1)[0]
50
- return torch.argmax(probs).item() + 1 # 1–5
51
 
52
 
53
  def build_segments(transcript):
 
47
  with torch.no_grad():
48
  logits = sentiment_model(**inputs).logits
49
  probs = F.softmax(logits, dim=-1)[0]
50
+ return torch.argmax(probs).item() + 1
51
 
52
 
53
  def build_segments(transcript):