fix TypeError: 'in <string>' requires string as left operand, not list
Browse files
model.py
CHANGED
@@ -66,8 +66,8 @@ def model(passage, level):
|
|
66 |
else:
|
67 |
txt = passage
|
68 |
|
69 |
-
sentence_cutters = [".", "!", "?"]
|
70 |
-
if
|
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
|