Hasitha16 commited on
Commit
f4ad55e
·
verified ·
1 Parent(s): 3034a35

Update frontend.py

Browse files
Files changed (1) hide show
  1. frontend.py +1 -0
frontend.py CHANGED
@@ -172,6 +172,7 @@ with tab1:
172
  "question": q_input,
173
  "verbosity": verbosity
174
  }
 
175
  res = requests.post(f"{backend_url}/followup/", json=follow_payload, headers=headers)
176
  if res.ok:
177
  st.success(res.json().get("answer"))
 
172
  "question": q_input,
173
  "verbosity": verbosity
174
  }
175
+ headers = {"x-api-key": st.session_state.get("api_token", "my-secret-key")} # ✅ FIX here
176
  res = requests.post(f"{backend_url}/followup/", json=follow_payload, headers=headers)
177
  if res.ok:
178
  st.success(res.json().get("answer"))