Spaces:
Runtime error
Runtime error
Commit
·
e68034e
1
Parent(s):
9bc33fc
Final commit
Browse files- generator.py +2 -1
generator.py
CHANGED
|
@@ -133,7 +133,8 @@ def creator(context):
|
|
| 133 |
questions = questions.split('?')
|
| 134 |
pairs = []
|
| 135 |
for ques in questions:
|
| 136 |
-
|
|
|
|
| 137 |
ques = ques + '?'
|
| 138 |
pair = QA(ques,context)
|
| 139 |
print(pair)
|
|
|
|
| 133 |
questions = questions.split('?')
|
| 134 |
pairs = []
|
| 135 |
for ques in questions:
|
| 136 |
+
l = len(ques)
|
| 137 |
+
if ques[l-1] != '?':
|
| 138 |
ques = ques + '?'
|
| 139 |
pair = QA(ques,context)
|
| 140 |
print(pair)
|