Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ def getqna(input):
|
|
| 38 |
if len(input)==0:
|
| 39 |
answer= get_answer(input,10,10)[random.randint(0, 9)]
|
| 40 |
else:
|
| 41 |
-
sentences=[get_answer(sentence,
|
| 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>","")
|
|
|
|
| 38 |
if len(input)==0:
|
| 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>","")
|