Skip to content

Commit

Permalink
Update application.js
Browse files Browse the repository at this point in the history
  • Loading branch information
znagler committed May 15, 2023
1 parent 8a5328a commit b962667
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions predict2016/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ const displayResults = (data) => {
.filter((d) => d.probability > 0)
.sort((a, b) => b.probability - a.probability)
.slice(0, 10);
console.log(candsWithProbs);
updateChart(candsWithProbs);
updatePredictText(candsWithProbs[0]);
};
Expand All @@ -194,7 +193,6 @@ const setInput = () => {
const callback = (data) => {
$('.predict').removeClass('loading disabled');
const results = data.results[0];
console.log(data);
const candsWithProbs = Object.keys(results)
.map((key) => {
const cand = Global.cands[+key.slice(1)].split(',')[0];
Expand All @@ -204,7 +202,7 @@ const callback = (data) => {
.filter((d) => d.probability > 0)
.sort((a, b) => b.probability - a.probability)
.slice(0, 10);
console.log(candsWithProbs);

updateChart(candsWithProbs);
updatePredictText(candsWithProbs[0]);
};
Expand Down

0 comments on commit b962667

Please sign in to comment.