Download test from DetectiveShadow/QuestBoard: direct link, hf CLI and curl.
- Browser
- Download file 334 Bytes
-
https://huggingface.co/DetectiveShadow/QuestBoard/resolve/main/test
- Command line
-
hf download hf://DetectiveShadow/QuestBoard/test
-
curl -L -o test https://huggingface.co/DetectiveShadow/QuestBoard/resolve/main/test
334 Bytes
| pip install transformers torch | |
| from transformers import pipeline, AutoModelForQuestionAnswering, AutoTokenizer | |
| # Load the pretrained model and tokenizer for QA | |
| model_name = "distilbert-base-cased-distilled-squad" | |
| model = AutoModelForQuestionAnswering.from_pretrained(model_name) | |
| tokenizer = AutoTokenizer.from_pretrained(model_name) | |