Spaces:
Sleeping
Sleeping
Delete redaction.py
Browse files- redaction.py +0 -7
redaction.py
DELETED
|
@@ -1,7 +0,0 @@
|
|
| 1 |
-
def redaction_confidence(result: dict) -> float:
|
| 2 |
-
url = result.get("url","").lower()
|
| 3 |
-
score = 0.9
|
| 4 |
-
if "pdf" in url: score -= 0.3
|
| 5 |
-
if "redact" in url: score -= 0.4
|
| 6 |
-
if "download" in url: score -= 0.2
|
| 7 |
-
return max(0.0, score)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|