Concepts
Handling variable input array
This will help you understand how to handle multiple varrible inputs sizes on Inferless
Often time you will want to send 1 or more inputs to your model. Inferless allows you to send multiple inputs to your model. In this guide, we’ll walk you through the steps to handle multiple inputs in Inferless.
To handle multiple inputs you can define the input_schema.py in your GitHub/GitLab repository with ‘shape’ as -1 which will allow dynamic input sizes.
In input_schema.py
Example
In code app.py
You can also flatten it to get all the values in a single list in app.py
This is how the API call will look like