Skip to content

Commit

Permalink
Rename field name in web
Browse files Browse the repository at this point in the history
  • Loading branch information
nailixing committed Jun 10, 2020
1 parent 3ccf695 commit 18fc47c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/src/containers/InferenceJobs/Prediction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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) {
Expand Down

0 comments on commit 18fc47c

Please sign in to comment.