Skip to content

Commit

Permalink
fix datauri typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jamalc committed Feb 25, 2025
1 parent a66546d commit f54d14b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/js/Pages/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default function Dashboard({ modelname }) {
setData(file_response.data);
// Create a URL for the Blob
bytesToBase64(shap_response.data).then(blob => {
setShapImgBlob(`data:image/png;base64,${blob}`);
setShapImgBlob(blob);
})
} else {
// If the output filename isn't present in the run, that means it hasn't completed. This is not an error but we should handle it.
Expand Down Expand Up @@ -222,7 +222,7 @@ export default function Dashboard({ modelname }) {
let shap_filename = csv_filename.replace("inference_output.csv", "shap_chart.png");
return axios.get('/output-file-bytes/'+shap_filename).then(res1 => {
bytesToBase64(res1.data).then(blob => {
setShapImgBlob(`data:image/png;base64,${blob}`);
setShapImgBlob(blob);
});
}).catch(err1 => setError(err1));
}
Expand Down

0 comments on commit f54d14b

Please sign in to comment.