Skylion007/openwebtext
Viewer • Updated • 8.01M • 66.6k • 512
How to use Belldofers/BelldofersTestModel with AllenNLP:
import allennlp_models
from allennlp.predictors.predictor import Predictor
predictor = Predictor.from_path("hf://Belldofers/BelldofersTestModel")
predictor_input = {"passage": "My name is Wolfgang and I live in Berlin", "question": "Where do I live?"}
predictions = predictor.predict_json(predictor_input)
import allennlp_models from allennlp.predictors.predictor import Predictor predictor = Predictor.from_path("hf://Belldofers/BelldofersTestModel") predictor_input = {"passage": "My name is Wolfgang and I live in Berlin", "question": "Where do I live?"} predictions = predictor.predict_json(predictor_input)