Technozam commited on
Commit
7bfdd8c
1 Parent(s): f28fb98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -224,6 +224,8 @@ def generate_question_text(context,subject,total):
224
  for wrp in wrap(summary_text, 150):
225
  print (wrp)
226
  np = get_keywords(context,summary_text,total)
 
 
227
  print ("\n\nNoun phrases",np)
228
  output="<b style='color:black;'>Answer the following short questions.</b><br><br>"
229
  i=1
@@ -269,6 +271,8 @@ def generate_question(context,subject,total):
269
  for wrp in wrap(summary_text, 150):
270
  print (wrp)
271
  np = get_keywords(context,summary_text,total)
 
 
272
  print ("\n\nNoun phrases",np)
273
  output="<b style='color:black;'>Answer the following short questions.</b><br><br>"
274
  i=1
 
224
  for wrp in wrap(summary_text, 150):
225
  print (wrp)
226
  np = get_keywords(context,summary_text,total)
227
+ random.shuffle(np)
228
+
229
  print ("\n\nNoun phrases",np)
230
  output="<b style='color:black;'>Answer the following short questions.</b><br><br>"
231
  i=1
 
271
  for wrp in wrap(summary_text, 150):
272
  print (wrp)
273
  np = get_keywords(context,summary_text,total)
274
+ random.shuffle(np)
275
+
276
  print ("\n\nNoun phrases",np)
277
  output="<b style='color:black;'>Answer the following short questions.</b><br><br>"
278
  i=1