jimnoneill commited on
Commit
048e5c2
·
verified ·
1 Parent(s): 181aa2b

Fix gate: only scientific_paper passes

Browse files
Files changed (1) hide show
  1. src/pubguard/classifier.py +1 -1
src/pubguard/classifier.py CHANGED
@@ -231,7 +231,7 @@ class PubGuard:
231
  for i in range(len(texts)):
232
  # Gate logic
233
  passes = True
234
- if cfg.require_scientific and dt_labels[i] not in ("scientific_paper", "poster"):
235
  passes = False
236
  if cfg.block_ai_generated and ai_labels[i] == "ai_generated":
237
  passes = False
 
231
  for i in range(len(texts)):
232
  # Gate logic
233
  passes = True
234
+ if cfg.require_scientific and dt_labels[i] != "scientific_paper":
235
  passes = False
236
  if cfg.block_ai_generated and ai_labels[i] == "ai_generated":
237
  passes = False