File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11starlette == 0.14.2
22numpy == 1.20.2
3+ allennlp >= 2.5.0 ,< 3.0.0
34# Even though it is not imported, it is actually required.
4- allennlp_models
5- -e git://github.com/LysandreJik/allennlp@hf_hub#egg=allennlp
5+ allennlp_models >= 2.5.0 ,< 3.0.0
66huggingface_hub == 0.0.8
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ const allennlpQuestionAnswering = (model: ModelData) =>
8989`import allennlp_models
9090from allennlp.predictors.predictor import Predictor
9191
92- predictor = Predictor.from_path("${ model . modelId } ")
92+ predictor = Predictor.from_path("hf:// ${ model . modelId } ")
9393predictor_input = {"passage": "My name is Wolfgang and I live in Berlin", "question": "Where do I live?"}
9494predictions = predictor.predict_json(predictor_input)` ;
9595
You can’t perform that action at this time.
0 commit comments