Spaces:
Running
Running
Download index.js from vonshed/transformers.js: direct link, hf CLI and curl.
- Browser
- Download file 239 Bytes
-
https://huggingface.co/spaces/vonshed/transformers.js/resolve/main/index.js
- Command line
-
hf download hf://spaces/vonshed/transformers.js/index.js
-
curl -L -o index.js https://huggingface.co/spaces/vonshed/transformers.js/resolve/main/index.js
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) |