Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|