aminaj commited on
Commit
ed8938e
·
verified ·
1 Parent(s): 86df71a

Update BrainBot.py

Browse files
Files changed (1) hide show
  1. BrainBot.py +1 -1
BrainBot.py CHANGED
@@ -89,7 +89,7 @@ with col3:
89
  "Content-Type": "application/json"
90
  }
91
  if openai_api_key:
92
- response = requests.post(FASTAPI_URL, json=data)
93
  st.sidebar.success(response.text)
94
  st.session_state['api_key_flag'] = True
95
  st.experimental_rerun()
 
89
  "Content-Type": "application/json"
90
  }
91
  if openai_api_key:
92
+ response = requests.post(FASTAPI_URL, json=data, headers=headers)
93
  st.sidebar.success(response.text)
94
  st.session_state['api_key_flag'] = True
95
  st.experimental_rerun()