Skip to content

Commit

Permalink
modified: streamly.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AdieLaine committed Feb 20, 2024
1 parent bee1fb4 commit 65ada83
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion streamly.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,11 @@ def main():
initial_bot_message = "Hello! How can I assist you with Streamlit today? Here are some of the latest highlights:\n"
updates = latest_updates.get("Highlights", {})
if isinstance(updates, dict): # Check if updates is a dictionary
initial_bot_message = "### Hello, I am Streamly!\n"
initial_bot_message = "### Latest Streamlit Highlights:\n"
for key, value in updates.items():
description = value.get("Description", "No description available.")
documentation = value.get("Documentation", "No documentation available.")
initial_bot_message += f"- **{key}**: {description}\n - **Documentation**: {documentation}\n"
st.session_state.history.append({"role": "assistant", "content": initial_bot_message})
st.session_state.conversation_history = [
{"role": "system", "content": "You are Streamly, a specialized AI assistant trained in Streamlit and the current update and version 1.28."},
Expand Down

0 comments on commit 65ada83

Please sign in to comment.