Invalid Input type when testing fine tuned endpoint from MSlearn Demo

Matt Woodcock 21 Reputation points

I'm following the tutorial :

However at the end when I test the data it fails with error :

 File "/opt/miniconda/envs/userenv/lib/python3.8/site-packages/inference_schema/", line 341, in _deserialize_input_argument
    raise ValueError("Invalid input data type to parse. Expected: {0} but got {1}".format(
ValueError: Invalid input data type to parse. Expected: <class 'list'> but got <class 'dict'>

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/miniconda/envs/userenv/lib/python3.8/site-packages/azureml_inference_server_http/server/", line 222, in handle_score
    timed_result = main_blueprint.user_script.invoke_run(request, timeout_ms=config.scoring_timeout)
  File "/opt/miniconda/envs/userenv/lib/python3.8/site-packages/azureml_inference_server_http/server/", line 139, in invoke_run
    raise UserScriptException(ex) from ex
azureml_inference_server_http.server.user_script.UserScriptException: Caught an unhandled exception from the user script

The data submitted is direct from the tutorial :

{ "input_data": { "columns": [ "input_string" ], "index": [0, 1, 2, 3, 4], "data": [["Contoso Suites exceeded our expectations with their impeccable service and luxurious amenities."], ["The breathtaking mountain views from our room at Alpine Ski House made our stay truly magical."], ["We had a disappointing experience at Margie's Travel due to the lack of cleanliness and outdated facilities."], ["The cozy fireplace in our room at Alpine Ski House created a warm and inviting atmosphere after a day on the slopes."], ["The rooftop pool at Contoso Suites offered a stunning panoramic view of the city, making our stay unforgettable."]] } }

Can't see any issue unless the tutorial itself contains an error?

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,666 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,480 questions
{count} votes