Spaces:
Runtime error
Runtime error
Update question_gen.py
Browse files- question_gen.py +0 -1
question_gen.py
CHANGED
|
@@ -22,5 +22,4 @@ def get_question(sentence,answer,mdl,tknizer, num_seq, num_beams, max_length):
|
|
| 22 |
dec = [tknizer.decode(ids,skip_special_tokens=True) for ids in outs]
|
| 23 |
|
| 24 |
Question = "\n".join([x.replace("question:", "") for x in dec])
|
| 25 |
-
Question = Question.strip()
|
| 26 |
return Question
|
|
|
|
| 22 |
dec = [tknizer.decode(ids,skip_special_tokens=True) for ids in outs]
|
| 23 |
|
| 24 |
Question = "\n".join([x.replace("question:", "") for x in dec])
|
|
|
|
| 25 |
return Question
|