Update BrainBot.py
Browse files- BrainBot.py +2 -1
BrainBot.py
CHANGED
@@ -81,7 +81,8 @@ with col3:
|
|
81 |
# variable
|
82 |
with st.spinner("Activating OpenAI API..."):
|
83 |
try:
|
84 |
-
FASTAPI_URL = "http://localhost:8000/set_api_key"
|
|
|
85 |
data = {"api_key": openai_api_key}
|
86 |
if openai_api_key:
|
87 |
response = requests.post(FASTAPI_URL, json=data)
|
|
|
81 |
# variable
|
82 |
with st.spinner("Activating OpenAI API..."):
|
83 |
try:
|
84 |
+
# FASTAPI_URL = "http://localhost:8000/set_api_key"
|
85 |
+
FASTAPI_URL = "https://huggingface.co/spaces/aminaj/BrainBot/set_api_key"
|
86 |
data = {"api_key": openai_api_key}
|
87 |
if openai_api_key:
|
88 |
response = requests.post(FASTAPI_URL, json=data)
|