A flask API that interacts with a ML endpoint
Setting up the ML-Server
if you follow the instructions laid out below:
virtual-environment
for the application, ensure it is a python3 environmentpip install -r requirements.txt
via your terminal.env.sample
file and name it .env
and in this file you set the PORT to your choice.python main.py
via your terminalThe following Endpoints are available:
POST /ml
INPUT
: As defined in input_data.json
200: OK
{
"data": [
{
"Predict": 1,
"Userid": 1
},
{
"Predict": 0,
"Userid": 2
}
]
}
POST /login
INPUT
: As defined in input_data.json
200: OK
{
"openid": "<open-id>"
}