Endpoint of api fixed and fixed bug where node is not null

This commit is contained in:
Lucas Oliveira 2023-02-19 23:44:44 -03:00
commit 31784f6045
2 changed files with 1 additions and 5 deletions

View file

@ -6,5 +6,5 @@ export async function getAll() {
export async function sendAll(data) {
console.log(data);
return await axios.post("http://localhost:5003/load", data);
return await axios.post("http://localhost:5003/predict", data);
}

View file

@ -113,7 +113,6 @@ export default function ExtraSidebar() {
onDragStart={(event) =>
onDragStart(event, {
type: "chatInput",
node: {},
})
}
>
@ -131,7 +130,6 @@ export default function ExtraSidebar() {
onDragStart={(event) =>
onDragStart(event, {
type: "chatOutput",
node: {},
})
}
>
@ -155,7 +153,6 @@ export default function ExtraSidebar() {
onDragStart={(event) =>
onDragStart(event, {
type: "str",
node: {},
})
}
>
@ -173,7 +170,6 @@ export default function ExtraSidebar() {
onDragStart={(event) =>
onDragStart(event, {
type: "bool",
node: {},
})
}
>