File size: 239 Bytes
72ef3a9
4d8e4ad
72ef3a9
 
 
 
 
1
2
3
4
5
6
7
from transformers import pipeline

qa_model = pipeline("question-answering")
question = "Where do I live?"
context = "My name is Merve and I live in İstanbul."
x = qa_model(question = question, context = context)
console.log('qa_model',x)