Update BrainBot.py
Browse files- 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()
|