Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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):
|