I was evaluating what is needed to write your own Estimator in Sagemaker. I was following this example here and it's well explained and quite simple.
My question is regarding the inference here. I see an example in which we can feed the invocations endpoint a CSV. What if I want to just post a string or even individual parameters? What's the best practise for that? I see there is a condition like:
if flask.request.content_type == "text/csv":
Should we add more like those to support different formats or should we create a new endpoint?