CoolFace
Modelpublic

harishforaiandml/my-pretrained-qa-model

sourceHugging Faceapache-2.0updated 4mo agoView on Hugging Face
0likes11downloads
Model Card

This model is using pre-trained question-answering from distilbert-base-cased-distilled-squad.

Use this model

Import

qa = pipeline(
    "question-answering",
    model="harishforaiandml/my-pretrained-qa-model"
)

Asking Question

paragraph = "Delhi is the capital of India"
question = "What is capital city of india?"

result = qa(question=question, context=paragraph)

print(result["answer"])