jrocha commited on
Commit
06193d1
·
verified ·
1 Parent(s): 0133578

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -58,6 +58,7 @@ def context_func(message):
58
 
59
  def answer_question(question):
60
  context = context_func(question)
 
61
  # Tokenize the inputs
62
  inputs = tokenizer(question, context, return_tensors="pt", max_length=512, truncation=True)
63
 
 
58
 
59
  def answer_question(question):
60
  context = context_func(question)
61
+ tokenizer = AutoTokenizer.from_pretrained("nlp-group/sindi-bert-final")
62
  # Tokenize the inputs
63
  inputs = tokenizer(question, context, return_tensors="pt", max_length=512, truncation=True)
64