osmanYusuf commited on
Commit
a38274c
1 Parent(s): 339500b

Update home.py

Browse files
Files changed (1) hide show
  1. home.py +2 -1
home.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import streamlit as st
2
  import requests
3
 
@@ -33,7 +34,7 @@ def show_home_page():
33
  )
34
 
35
  # FastAPI endpoint URLs
36
- BASE_URL = "http://127.0.0.1:8000"
37
  CREATE_CHAT_URL = f"{BASE_URL}/create_chat/"
38
  QUERY_CHAT_URL = f"{BASE_URL}/query/"
39
  DELETE_CHAT_URL = f"{BASE_URL}/chats/"
 
1
+ import os
2
  import streamlit as st
3
  import requests
4
 
 
34
  )
35
 
36
  # FastAPI endpoint URLs
37
+ BASE_URL = os.getenv("FASTAPI_BASE_URL", "http://localhost:8000")
38
  CREATE_CHAT_URL = f"{BASE_URL}/create_chat/"
39
  QUERY_CHAT_URL = f"{BASE_URL}/query/"
40
  DELETE_CHAT_URL = f"{BASE_URL}/chats/"