Skip to content

Instantly share code, notes, and snippets.

@maxbrenner-ai
Created August 26, 2020 16:41
Show Gist options
  • Save maxbrenner-ai/b692f6af50bbc207f57411c3d1b30f00 to your computer and use it in GitHub Desktop.
Save maxbrenner-ai/b692f6af50bbc207f57411c3d1b30f00 to your computer and use it in GitHub Desktop.
call model with ajax
$.ajax({
type: "POST",
url: "https://a3bqc81dv1.execute-api.us-east-2.amazonaws.com/test/myLambdaFunction",
data: JSON.stringify({'hyperparmeter_1': 0, 'hyperparameter_2': 0,'data': csv_text}),
contentType: 'text/plain',
success: function(success){
console.log(success);
},
error: function(error){
console.log(error)
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment