sanjudebnath commited on
Commit
c5ed966
·
verified ·
1 Parent(s): 0ae323a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,8 +12,8 @@ def load_model():
12
  return model, tokenizer
13
 
14
  def get_answer(question, text, tokenizer, model):
15
- if "your name" in question.lower():
16
- return "My name is Numini, full form NativUttarMini, created by Sanju Debnath at University of Calcutta."
17
 
18
  inputs = tokenizer(question, text, return_tensors="pt", truncation=True, padding=True)
19
  with torch.no_grad():
 
12
  return model, tokenizer
13
 
14
  def get_answer(question, text, tokenizer, model):
15
+ if "your name" or "who are you" or "about you" in question.lower():
16
+ return "I am Numini, NativUttarMini, created by Sanju Debnath at University of Calcutta."
17
 
18
  inputs = tokenizer(question, text, return_tensors="pt", truncation=True, padding=True)
19
  with torch.no_grad():