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