Prediction showing

parent 5fddfd8c
......@@ -116,9 +116,9 @@ export default function InputDetails() {
axios.post(' http://127.0.0.1:5000/grocery', groceryModelReq)
.then(function (GroceryResult) {
console.log("Prediction", GroceryResult.data)
// dispatch(addBusiness({
// ...businessDetails.value[0], locationFeatures: locationFeatures, ml_result: GroceryResult.data.data
// }))
dispatch(addBusiness({
...businessDetails.value[0], locationFeatures: locationFeatures, ml_result: GroceryResult.data.data
}))
navigate(`/result`)
handleClose()
}).catch((error)=>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment