Corran commited on
Commit
9d9ee21
·
1 Parent(s): 5c46280

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -39,6 +39,7 @@ def getqna(input):
39
  answer= get_answer(input,10,10)[random.randint(0, 9)]
40
  else:
41
  sentences=[get_answer(sentence,10,10)[random.randint(0, 9)] for sentence in input]
 
42
  answer= " ".join(sentences)
43
  answer= get_answer(answer,10,10)[random.randint(0, 9)]
44
  question= get_question(answer, input).replace("<pad>","").replace("</s>","")
 
39
  answer= get_answer(input,10,10)[random.randint(0, 9)]
40
  else:
41
  sentences=[get_answer(sentence,10,10)[random.randint(0, 9)] for sentence in input]
42
+ random.shuffle(sentences)
43
  answer= " ".join(sentences)
44
  answer= get_answer(answer,10,10)[random.randint(0, 9)]
45
  question= get_question(answer, input).replace("<pad>","").replace("</s>","")