Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,6 @@ 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 |
-
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>","")
|
|
|
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>","")
|