Spaces:
Sleeping
Sleeping
Update frontend.py
Browse files- 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"))
|