Spaces:
Running
Running
chabane
commited on
Commit
·
4435f63
1
Parent(s):
180dc07
Update the UI and main
Browse files
static/scripts/data-visualisation.js
CHANGED
@@ -38,7 +38,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|
38 |
formdata.append("user_need", prompt);
|
39 |
const response = await fetch("/plot", {
|
40 |
method: "POST",
|
41 |
-
body:
|
42 |
});
|
43 |
const result = await response.json();
|
44 |
|
|
|
38 |
formdata.append("user_need", prompt);
|
39 |
const response = await fetch("/plot", {
|
40 |
method: "POST",
|
41 |
+
body: formdata,
|
42 |
});
|
43 |
const result = await response.json();
|
44 |
|