Update app.py
Browse files
app.py
CHANGED
@@ -202,6 +202,8 @@ def generate_question_text(context,subject,total):
|
|
202 |
for wrp in wrap(summary_text, 150):
|
203 |
print (wrp)
|
204 |
np = get_keywords(context,summary_text,total)
|
|
|
|
|
205 |
print ("\n\nNoun phrases",np)
|
206 |
output="<b style='color:black;'>Answer the following true/false questions. Select the correct answer.</b><br><br>"
|
207 |
|
@@ -244,6 +246,8 @@ def generate_question(context,subject,total):
|
|
244 |
for wrp in wrap(summary_text, 150):
|
245 |
print (wrp)
|
246 |
np = get_keywords(context,summary_text,total)
|
|
|
|
|
247 |
print ("\n\nNoun phrases",np)
|
248 |
output="<b style='color:black;'>Answer the following true/false questions. Select the correct answer.</b><br><br>"
|
249 |
|
|
|
202 |
for wrp in wrap(summary_text, 150):
|
203 |
print (wrp)
|
204 |
np = get_keywords(context,summary_text,total)
|
205 |
+
random.shuffle(np)
|
206 |
+
|
207 |
print ("\n\nNoun phrases",np)
|
208 |
output="<b style='color:black;'>Answer the following true/false questions. Select the correct answer.</b><br><br>"
|
209 |
|
|
|
246 |
for wrp in wrap(summary_text, 150):
|
247 |
print (wrp)
|
248 |
np = get_keywords(context,summary_text,total)
|
249 |
+
random.shuffle(np)
|
250 |
+
|
251 |
print ("\n\nNoun phrases",np)
|
252 |
output="<b style='color:black;'>Answer the following true/false questions. Select the correct answer.</b><br><br>"
|
253 |
|