nontGcob commited on
Commit
179a07d
1 Parent(s): 01d266e

fix TypeError: 'in <string>' requires string as left operand, not list

Browse files
Files changed (1) hide show
  1. model.py +2 -2
model.py CHANGED
@@ -66,8 +66,8 @@ def model(passage, level):
66
  else:
67
  txt = passage
68
 
69
- sentence_cutters = [".", "!", "?"]
70
- if sentence_cutters in txt:
71
  txt = (txt.split(".").split("!").split("?"))
72
  else:
73
  txt = txt
 
66
  else:
67
  txt = passage
68
 
69
+ # sentence_cutters = [".", "!", "?"]
70
+ if ("." in txt) or ("!" in txt) or ("?" in txt):
71
  txt = (txt.split(".").split("!").split("?"))
72
  else:
73
  txt = txt