Skip to content

Commit

Permalink
Fix stuff I broke
Browse files Browse the repository at this point in the history
  • Loading branch information
duogenesis committed Jan 1, 2025
1 parent 1cdaa4c commit ee409ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion antiabuse/antiporn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from io import BytesIO
from pathlib import Path

_MODEL_PATH_BASE = Path(__file__).parent.parent.parent / 'antiporn'
_MODEL_PATH_BASE = Path(__file__).parent.parent / 'antiporn'

_MODEL = bytearray()
for file_path in sorted(_MODEL_PATH_BASE.glob('model.onnx.part*')):
Expand Down
5 changes: 1 addition & 4 deletions antiabuse/antispam/gibberishdetector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,4 @@ def train_model():
train_model()
else:
# Load bigram probabilities for use

# TODO
# bigram_probs = load_bigram_probs()
bigram_probs = None
bigram_probs = load_bigram_probs()

0 comments on commit ee409ed

Please sign in to comment.