Spaces:
Sleeping
Sleeping
edit padding to not show
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ class DeBERTaV3Model:
|
|
103 |
label = "Insincere" if (F.softmax(preds[0], dim=1)[:, 1]>0.4878) else "Sincere"
|
104 |
probs = {
|
105 |
"Probability": float(F.softmax(preds[0], dim=1)[:, 1]),
|
106 |
-
"Sequence": test_tensor
|
107 |
}
|
108 |
return label, probs
|
109 |
|
|
|
103 |
label = "Insincere" if (F.softmax(preds[0], dim=1)[:, 1]>0.4878) else "Sincere"
|
104 |
probs = {
|
105 |
"Probability": float(F.softmax(preds[0], dim=1)[:, 1]),
|
106 |
+
"Sequence": test_tensor[test_tensor != 0]
|
107 |
}
|
108 |
return label, probs
|
109 |
|