# Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("coldice42/homework6")
model = AutoModelForQuestionAnswering.from_pretrained("coldice42/homework6")Quick Links
# Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("coldice42/homework6")
model = AutoModelForQuestionAnswering.from_pretrained("coldice42/homework6")
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("question-answering", model="coldice42/homework6")