YasirAbdali commited on
Commit
e1e3112
1 Parent(s): 79f1e3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ def load_model():
10
  return model, tokenizer
11
 
12
  def answer_question(question, model, tokenizer):
13
- inputs = tokenizer(question, return_tensors="pt", max_length=1028, truncation=True, padding="max_length")
14
 
15
  with torch.no_grad():
16
  outputs = model(**inputs)
 
10
  return model, tokenizer
11
 
12
  def answer_question(question, model, tokenizer):
13
+ inputs = tokenizer(question, return_tensors="pt", max_length=512, truncation=True, padding="max_length")
14
 
15
  with torch.no_grad():
16
  outputs = model(**inputs)