Azure / Azure/azureml-examples
Testing the endpoint with sample data does not work
- Dominant language
- Jupyter Notebook
- Stars
- 2k
- Forks
- 1.7k
- Avg merge
- 18h 18m
- Merged PRs (30d)
- 2
Description
### Operating System
Windows
### Version Information
Not sure how to get that but the SDK version is 1.56.0
### Steps to reproduce
In step 9 of finetuning for text classification azureml-examples (https://github.com/Azure/azureml-examples/blob/main/sdk/python/foundation-models/system/finetune/text-classification/emotion-detection.ipynb), the code,
# score the sample_score.json file using the online endpoint with the azureml endpoint invoke method
response = workspace_ml_client.online_endpoints.invoke(
endpoint_name=online_endpoint_name,
deployment_name="demo",
request_file="./emotion-dataset/sample_score.json",
)
print("raw response: \n", response, "\n")
# convert the response to a pandas dataframe and rename the label column as scored_label
response_df = pd.read_json(response)
response_df = response_df.rename(columns={0: "scored_label"})
response_df.head(5)
Fails with the error -
HttpResponseError: (None) A value is not provided for the 'input_data' parameter.
Code: None
Message: A value is not provided for the 'input_data' parameter.
### Expected behavior
Scoring of the sample_score.json file using the online endpoint with the azureml endpoint invoke method
### Actual behavior
HttpResponseError: (None) A value is not provided for the 'input_data' parameter.
Code: None
Message: A value is not provided for the 'input_data' parameter.
### Addition information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.