Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

config.py 688 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  1. import streamlit as __st
  2. def page_config():
  3. # Set the page config
  4. __st.set_page_config(
  5. page_title="Omdena Chatbot", # The title of the web page
  6. page_icon="💬", # The icon of the web page, can be an emoji or a file path
  7. initial_sidebar_state="expanded", # Expanded sidebar
  8. )
  9. def page_session():
  10. # Initialize chat history
  11. if "messages" not in __st.session_state:
  12. __st.session_state.messages = []
  13. # Initialize user data
  14. if "user_data" not in __st.session_state:
  15. __st.session_state.user_data = None
  16. # Initialize greeting
  17. if "greeted" not in __st.session_state:
  18. __st.session_state.greeted = False
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...