Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 "
|
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():
|