CaffeinatedCoding commited on
Commit
f0ef76e
·
verified ·
1 Parent(s): d7caac8

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. 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({ query })
 
 
 
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();