-
Notifications
You must be signed in to change notification settings - Fork 834
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
To pass customized input json without the mandatory jsonData parameter #1792
Comments
The executor service orchestrator is protocol agnostic for REST. The need would be for the python wrapper to not try to parse the request. @RafalSkolasinski is this possible now? For gRPC there is the ability (in master) to have custom protos see: https://docs.seldon.io/projects/seldon-core/en/latest/examples/customdata_example.html |
Not that I am aware. The whole reasoning behind having it as The
This is also because wrapper uses top-level keys to pass additional information between different nodes in the graph - like custom Are there any downsides to having edit: It should be possible using |
Hi @cliveseldon and @RafalSkolasinski , It would be helpful if you could clarify the necessity of validating the type of data passed based on a keyword , rather than storing the type of data passed as input and validating the type which would avoid the usage of keywords.
Expecting your reply |
I think if you provide a seldon-core/python/seldon_core/seldon_methods.py Lines 85 to 91 in 88714de
Can you try? @divyadilip91 |
this is my code basically, but received error def predict_raw(self, request): my input json to be passed is {"image_base64":"base64string"} |
It would be helpful if you post what errors you are getting, thanks! |
It does work fine for me as long as the returned type from |
Please post both request output and microservice logs. |
Oh is it..Ok then let me check whats missing in my program..Will get back in few mins |
@cliveseldon @RafalSkolasinski Thankyou so much for your help and immediate response. |
@divyadilip91 glad its working |
Hi ,
Currently I see that seldon accepts input with keywords data, bindata,strdata or jsonData.
So it is a compulsory step to include our input data within the keyword otherwise seldon will consider the message as an invalid json.
Eg: if my input json to be passed is {"text":"hi"}, I need to enclose this with jsonData {"jsonData":{"text":"hi"}} and pass to seldon.
Could there be a way where in we can avoid this and pass the json without a restriction?
Please do reply.
The text was updated successfully, but these errors were encountered: