Created
August 26, 2020 16:41
-
-
Save maxbrenner-ai/b692f6af50bbc207f57411c3d1b30f00 to your computer and use it in GitHub Desktop.
call model with ajax
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.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