How to use from the
Use from the
AllenNLP library
import allennlp_models
from allennlp.predictors.predictor import Predictor

predictor = Predictor.from_path("hf://lysandre/bidaf-elmo-model-2020.03.19")
predictor_input = {"passage": "My name is Wolfgang and I live in Berlin", "question": "Where do I live?"}
predictions = predictor.predict_json(predictor_input)

Example of AllenNLP question answering model.

Downloads last month
9
Inference Providers NEW
This model isn't deployed by any Inference Provider. 馃檵 Ask for provider support

Space using lysandre/bidaf-elmo-model-2020.03.19 1