garrettbaber
commited on
Commit
·
9be3e5a
1
Parent(s):
2925dbb
fix param name
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
|
3 |
|
4 |
def formatOutput(modelOutput):
|
5 |
#parse output
|
6 |
-
logits =
|
7 |
rawScore = logits.tolist().pop().pop()
|
8 |
return f"{rawScore:.3f}"
|
9 |
|
|
|
3 |
|
4 |
def formatOutput(modelOutput):
|
5 |
#parse output
|
6 |
+
logits = modelOutput.get("logits")
|
7 |
rawScore = logits.tolist().pop().pop()
|
8 |
return f"{rawScore:.3f}"
|
9 |
|