From 18fc47cc28045e7be01024afa34bcaca97cb4f60 Mon Sep 17 00:00:00 2001 From: nailixing Date: Wed, 10 Jun 2020 22:39:34 +0800 Subject: [PATCH] Rename field name in web --- web/src/containers/InferenceJobs/Prediction.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/containers/InferenceJobs/Prediction.js b/web/src/containers/InferenceJobs/Prediction.js index ccb72657..1672e9c1 100644 --- a/web/src/containers/InferenceJobs/Prediction.js +++ b/web/src/containers/InferenceJobs/Prediction.js @@ -158,7 +158,7 @@ class RunPrediction extends React.Component { try { const res = await axios.post( `http://${this.state.predictorHost}/predict`, - formData, + formData, { headers: { 'Content-Type': 'multipart/form-data', @@ -184,8 +184,8 @@ class RunPrediction extends React.Component { formState: "idle", message: "Upload and prediction done", predictionDone: true, - gradcamImg: res.data.explaination.gradcam_img, - limeImg: res.data.explaination.lime_img, + gradcamImg: res.data.explanations.gradcam_img, + limeImg: res.data.explanations.lime_img, mcDropout: res.data.mc_dropout, })) } catch (err) {