Corran commited on
Commit
5c46280
1 Parent(s): e946249

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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,1,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>","")
 
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>","")