s-ttp commited on
Commit
84ba47d
·
verified ·
1 Parent(s): f9b56b9

Upload static/app.js with huggingface_hub

Browse files
Files changed (1) hide show
  1. static/app.js +1 -1
static/app.js CHANGED
@@ -822,7 +822,7 @@ async function run() {
822
  $("#v-ticker").textContent = ticker; $("#v-rating").textContent = ""; $("#status").textContent = "starting…";
823
  $("#run").disabled = true;
824
  $("#analysis").scrollIntoView({ behavior: "smooth", block: "start" });
825
- const resp = await fetch(`/api/analyst/${encodeURIComponent(query)}`, { method: "POST" });
826
  if (!resp.ok) {
827
  let msg = "failed to start";
828
  try { const e = await resp.json(); if (e.detail) msg = e.detail; } catch { /* keep default */ }
 
822
  $("#v-ticker").textContent = ticker; $("#v-rating").textContent = ""; $("#status").textContent = "starting…";
823
  $("#run").disabled = true;
824
  $("#analysis").scrollIntoView({ behavior: "smooth", block: "start" });
825
+ const resp = await fetch(`/api/analyst/${encodeURIComponent(query)}`, { method: "POST", headers: { "X-Crucible-Client": "ui" } });
826
  if (!resp.ok) {
827
  let msg = "failed to start";
828
  try { const e = await resp.json(); if (e.detail) msg = e.detail; } catch { /* keep default */ }