Generates method for /predict endpoint in VetiverAPI
The handler_predict function executes at each API call. Use this function for calling predict() and any other tasks that must be executed at each API call.
Parameters
Name
Type
Description
Default
input_data
Test data. The SpacyHandler expects an input of a 1 column DataFrame with the same column names as the prototype data, or column name “text” if no prototype was given.