BERT_based_QnA / app.py
pragnakalp's picture
Update app.py
07a5a6f
raw
history blame
321 Bytes
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
from transformers import pipeline
tokenizer = AutoTokenizer.from_pretrained("monakth/bert-base-multilingual-uncased-finetuned-squadv2")
model = AutoModelForQuestionAnswering.from_pretrained("monakth/bert-base-multilingual-uncased-finetuned-squadv2")