transformers.js / index.js
vonshed's picture
Update index.js
72ef3a9 verified
raw
history blame contribute delete
No virus
239 Bytes
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)