Predict module

This module contains the make_predictions function, which is used to make predictions by sending image data to the specified AWS API endpoint. The function load an image file, send it to the endpoint, and receive the prediction result.

predict.make_predictions(endpoint, image_path)

Sends image data to the API endpoint and retrieves prediction results.

Parameters:

endpointstr

Send a POST request to this endpoint

image_pathstr

Path of the image to make prediction

Returns:

dict

JSON response from the API. “result”.