Update BrainBot.py
Browse files- BrainBot.py +2 -1
BrainBot.py
CHANGED
@@ -93,7 +93,8 @@ with col3:
|
|
93 |
# variable
|
94 |
with st.spinner("Activating OpenAI API..."):
|
95 |
try:
|
96 |
-
FASTAPI_URL = "http://localhost:8000/set_api_key"
|
|
|
97 |
data = {"api_key": openai_api_key}
|
98 |
if openai_api_key:
|
99 |
response = requests.post(FASTAPI_URL, json=data)
|
|
|
93 |
# variable
|
94 |
with st.spinner("Activating OpenAI API..."):
|
95 |
try:
|
96 |
+
# FASTAPI_URL = "http://localhost:8000/set_api_key"
|
97 |
+
FASTAPI_URL = "http://localhost:7860/set_api_key"
|
98 |
data = {"api_key": openai_api_key}
|
99 |
if openai_api_key:
|
100 |
response = requests.post(FASTAPI_URL, json=data)
|