guipenedo HF Staff commited on
Commit
aff60d9
·
1 Parent(s): a51c064

clean up design

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def matches_prefilters(doc, require_has_math: bool | None, require_has_infobox:
36
  meta = doc.metadata or {}
37
  if require_has_math and not bool(meta.get("has_math")):
38
  return False
39
- if require_has_infobox and meta.get("infoboxes", "[]") != "[]":
40
  return False
41
  return True
42
 
 
36
  meta = doc.metadata or {}
37
  if require_has_math and not bool(meta.get("has_math")):
38
  return False
39
+ if require_has_infobox and meta.get("infoboxes", "[]") == "[]":
40
  return False
41
  return True
42