Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2022-257
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2022-257
2022-257
Commits
a5d7afb4
Commit
a5d7afb4
authored
Oct 10, 2022
by
it19048642@my.sllit.lk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prediction showing
parent
5fddfd8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
bussifinder/src/components/Grocery Input/InputDetails.js
bussifinder/src/components/Grocery Input/InputDetails.js
+3
-3
No files found.
bussifinder/src/components/Grocery Input/InputDetails.js
View file @
a5d7afb4
...
...
@@ -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
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment