aminaj commited on
Commit
d907e60
1 Parent(s): 798f0d1

Update BrainBot.py

Browse files
Files changed (1) hide show
  1. 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)