Fix gate: only scientific_paper passes
Browse files
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]
|
| 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
|