Ultimate access to all questions.
You trained a text classification model using TensorFlow and exported it to be served by TensorFlow Serving. You have the following SignatureDefs for the model. You started a TensorFlow-serving component server and configured it to listen for HTTP requests at 'http://localhost:8501/v1/models/text_model:predict'. To get a prediction from the model, you need to send an HTTP POST request. Given the headers = {"content-type": "application/json"}, which of the following is the correct way to write the predict request?