Skip to content

Commit

Permalink
Temporarily put env vars on front page
Browse files Browse the repository at this point in the history
  • Loading branch information
Vidminas committed Feb 1, 2024
1 parent 569dd1c commit 8181393
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions chat_app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
from langchain.schema import messages_to_dict
from chat_app.solid_message_history import SolidChatMessageHistory

print("WEBSITE_SITE_NAME", os.environ.get("WEBSITE_SITE_NAME"))
print("WEBSITE_HOSTNAME", os.environ.get("WEBSITE_HOSTNAME"))
print("SERVER_PORT", os.environ.get("SERVER_PORT"))
print("PORT", os.environ.get("PORT"))
print("WEBSITES_PORT", os.environ.get("WEBSITES_PORT"))

OAUTH_CALLBACK_URI = "http://localhost:8501/callback"

Expand Down Expand Up @@ -109,6 +104,12 @@ def main():
st.sidebar.title("Options")
setup_login_sidebar()

st.text("WEBSITE_SITE_NAME", help=os.environ.get("WEBSITE_SITE_NAME"))
st.text("WEBSITE_HOSTNAME", help=os.environ.get("WEBSITE_HOSTNAME"))
st.text("SERVER_PORT", help=os.environ.get("SERVER_PORT"))
st.text("PORT", help=os.environ.get("PORT"))
st.text("WEBSITES_PORT", help=os.environ.get("WEBSITES_PORT"))

if "solid_token" in st.session_state:
if "msg_history" not in st.session_state:
st.session_state["msg_history"] = SolidChatMessageHistory(
Expand Down

0 comments on commit 8181393

Please sign in to comment.