Spaces:
Sleeping
Sleeping
osmanYusuf
commited on
Commit
•
a38274c
1
Parent(s):
339500b
Update home.py
Browse files
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://
|
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/"
|