Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing the endpoint with sample data does not work #3385

Open
Varun-Khemani opened this issue Sep 13, 2024 · 0 comments
Open

Testing the endpoint with sample data does not work #3385

Varun-Khemani opened this issue Sep 13, 2024 · 0 comments
Labels

Comments

@Varun-Khemani
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant