Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
Fix predict.jag with predict api change.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirmal070125 committed May 29, 2015
1 parent d4bff61 commit 96fd089
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/jaggeryapps/ml/site/predict/predict.jag
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,11 @@
});

jsonData = JSON.stringify(inputArray);

jsonData = "[".concat(jsonData, "]");

$.ajax({
type: "POST",
url: serverUrl+"/api//models/"+modelId+"/predict",
url: serverUrl+"/api/models/"+modelId+"/predict",
contentType: "application/json",
data: jsonData,
/*beforeSend : function(xhr) {
Expand Down

0 comments on commit 96fd089

Please sign in to comment.