Spaces:
Sleeping
Sleeping
ventuero commited on
Commit ·
979a01c
1
Parent(s): 9406f70
fuck
Browse files
src/antispam_api/loader.py
CHANGED
|
@@ -18,7 +18,7 @@ model = (
|
|
| 18 |
)
|
| 19 |
|
| 20 |
|
| 21 |
-
def
|
| 22 |
encoding = tokenizer(
|
| 23 |
text,
|
| 24 |
padding="max_length",
|
|
|
|
| 18 |
)
|
| 19 |
|
| 20 |
|
| 21 |
+
def get_spam_score(text: str) -> float:
|
| 22 |
encoding = tokenizer(
|
| 23 |
text,
|
| 24 |
padding="max_length",
|