Spaces:
Running
Running
Update static/application.js
Browse files- static/application.js +1 -1
static/application.js
CHANGED
@@ -58,7 +58,7 @@ async function handleSubmit() {
|
|
58 |
convo.innerHTML = `<div style="padding: 1rem; background: #eee; border-radius: 8px;">Processing your request...</div>`;
|
59 |
|
60 |
try {
|
61 |
-
const response =
|
62 |
method: "POST",
|
63 |
body: formData,
|
64 |
});
|
|
|
58 |
convo.innerHTML = `<div style="padding: 1rem; background: #eee; border-radius: 8px;">Processing your request...</div>`;
|
59 |
|
60 |
try {
|
61 |
+
const response = await fetch("/predict", {
|
62 |
method: "POST",
|
63 |
body: formData,
|
64 |
});
|