Azure / InferenceSchema

Schema decoration for inference code
MIT License
37 stars 13 forks source link

How to accept octet-stream #22

Open dashesy opened 4 years ago

dashesy commented 4 years ago

I have the input sample:

input_sample = b"image_content"

Is there a way to accept binary content? I would like to send raw data (e.g. --data-binary of curl)

dashesy commented 4 years ago

Instead of implicitely converting to base64, the schema should expect octet stream when input is bytes. Option for octet-stream also makes it easier to use binary data and still use the automatic swagger generation.