Skip to content
Advertisement

How can I remove the wrapper around the input when using Inference Schema

When using Inference Schema to autogenerate the swagger doc for my AzureML endpoint (as detailed here and here), I see that it creates a wrapper around my input_sample. Is there a way to not wrap the input inside this “data” wrapper?

Here is what my score.py looks like:

JavaScript

Advertisement

Answer

InferenceSchema used with Azure Machine Learning deployments, then the code for this package was recently published at https://github.com/Azure/InferenceSchema under an MIT license. So you could possibly use that to create a version specific to your needs.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement