Skip to content

Commit

Permalink
modified: streamly.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AdieLaine committed May 4, 2024
1 parent 53ca802 commit 92a1289
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions streamly.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def img_to_base64(image_path):
st.sidebar.markdown("---")

# Sidebar for Mode Selection
#mode = st.sidebar.radio("Select Mode:", options=["Latest Updates", "Chat with Streamly"], index=1)
mode = st.sidebar.radio("Select Mode:", options=["Latest Updates", "Chat with Streamly"], index=1)
use_langchain = st.sidebar.checkbox("Use LangChain OpenAI Adapter 🦜️🔗 ", value=False)
st.sidebar.markdown("---")
# Toggle checkbox in the sidebar for basic interactions
Expand Down Expand Up @@ -339,7 +339,7 @@ def img_to_base64(image_path):
st.stop()

# Handle Chat and Update Modes
if mode == "Chat with Streamly": # type: ignore
if mode == "Chat with Streamly":
chat_input = st.chat_input("Ask me about Streamlit updates:")
if chat_input:
latest_updates = load_streamlit_updates()
Expand Down

0 comments on commit 92a1289

Please sign in to comment.