400 error when trying to make predictions using HuggingFacePredictor

using the sample code here to deploy a model and tried to make a prediction.But it returns the following error:
An error occurred (ModelError) when calling the InvokeEndpoint operation: Received client error (400) from primary with message "{
“code”: 400,
“type”: “InternalServerException”,
“message”: “T argument needs to be of type (SquadExample, dict)”

Any suggestions?

Thank you.