hf_question_answering_payload | R Documentation |
Want to have a nice know-it-all bot that can answer any question?
hf_question_answering_payload(question, context)
question |
a question to be answered based on the provided context |
context |
the context to consult for answering the question |
An inference payload
https://huggingface.co/docs/api-inference/detailed_parameters#question-answering-task
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.