Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- frontend/app.js +4 -1
frontend/app.js
CHANGED
|
@@ -115,7 +115,10 @@ async function submitQuery() {
|
|
| 115 |
const res = await fetch(`${API_BASE}/query`, {
|
| 116 |
method: "POST",
|
| 117 |
headers: { "Content-Type": "application/json" },
|
| 118 |
-
body: JSON.stringify({
|
|
|
|
|
|
|
|
|
|
| 119 |
});
|
| 120 |
|
| 121 |
const data = await res.json();
|
|
|
|
| 115 |
const res = await fetch(`${API_BASE}/query`, {
|
| 116 |
method: "POST",
|
| 117 |
headers: { "Content-Type": "application/json" },
|
| 118 |
+
body: JSON.stringify({
|
| 119 |
+
query,
|
| 120 |
+
session_id: activeSessionId ? String(activeSessionId) : "default"
|
| 121 |
+
})
|
| 122 |
});
|
| 123 |
|
| 124 |
const data = await res.json();
|