Commit 50e0b2f7 authored by Мазур Грета Евгеньевна's avatar Мазур Грета Евгеньевна
Browse files

micro zapusk no cross

parent c064e465
No related merge requests found
Showing with 4 additions and 4 deletions
+4 -4
......@@ -203,8 +203,8 @@ def predict(text):
with torch.no_grad():
outputs = model(**inputs)
safety_probs = torch.softmax(outputs['safety'], dim=1)
attack_probs = torch.softmax(outputs['attack'], dim=1)
safety_probs = torch.softmax(outputs['logits_safety'], dim=1)
attack_probs = torch.softmax(outputs['logits_attack'], dim=1)
return {
'safety': {
......
......@@ -203,8 +203,8 @@ def predict(text):
with torch.no_grad():
outputs = model(**inputs)
safety_probs = torch.softmax(outputs['safety'], dim=1)
attack_probs = torch.softmax(outputs['attack'], dim=1)
safety_probs = torch.softmax(outputs['logits_safety'], dim=1)
attack_probs = torch.softmax(outputs['logits_attack'], dim=1)
return {
'safety': {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment