Hi,
I’m trying to upload the model from my local system to the micro-service instance running on cloud.
The below code works fine for local URL.
headers = {"Content-Type": "application/json"}
data = {
"model_file": MODEL_PATH + MODEL_FILE
}
r = requests.put(url = URL, data = json.dumps(data), headers=headers)
But throws the following error when I replace the local url with that of the cloud instance.
{
'version': '1.4.0',
'status': 'failure',
'message': "Agent with name '/models/20191110-161703.tar.gz' could not be loaded.",
'reason': 'BadRequest',
'details': {'parameter': 'model', 'in': 'query'},
'help': None,
'code': 400
}