Nickitaa commited on
Commit
dc03ae6
1 Parent(s): 8de7a66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -56,7 +56,9 @@ def answers_generator(question):
56
  final_answer=[]
57
  question_tokens = tokenizer.tokenize(question, return_tensors='pt')
58
  selected_quesion=["[CLS]", "what" , "is" , "explain" ,"[SEP]","?",".","where",
59
- "how","when","which","who","whom","whose","whether","why","give","provide","describe"]
 
 
60
  result_token=[]
61
  decoded_tokens=[]
62
  for tokens in question_tokens:
 
56
  final_answer=[]
57
  question_tokens = tokenizer.tokenize(question, return_tensors='pt')
58
  selected_quesion=["[CLS]", "what" , "is" , "explain" ,"[SEP]","?",".","where",
59
+ "how","when","which","who","whom","whose","whether","why","give","provide","describe","are", "was", "were", "been", "being",
60
+ "have", "has", "had", "having","do", "does", "did","can", "could", "shall", "should", "will",
61
+ "would", "may", "might", "must", "dare", "need", "used to", "ought to"]
62
  result_token=[]
63
  decoded_tokens=[]
64
  for tokens in question_tokens: