AlanOC commited on
Commit
4be3ac4
·
verified ·
1 Parent(s): 84cdba5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -6
app.py CHANGED
@@ -166,12 +166,12 @@ def clean_string(s):
166
  def main():
167
 
168
  # Page selection in the sidebar with default set to "Chat Page"
169
- page = st.sidebar.radio("Select a Page", ["Chat Page", "About Page"], index=0)
170
 
171
  if page == "Chat Page":
172
  chat_page()
173
- elif page == "About Page":
174
- about_page()
175
 
176
  def chat_page():
177
 
@@ -567,13 +567,25 @@ def chat_page():
567
  st.components.v1.html(js)
568
 
569
 
570
- def about_page():
571
  # About Page sidebar content
572
  # (Include any specific sidebar widgets for the About Page here)
573
 
 
 
 
 
 
 
574
  # Main content for the About Page
575
- st.write("Welcome to the About Page")
576
- # ...
 
 
 
 
 
 
577
 
578
 
579
 
 
166
  def main():
167
 
168
  # Page selection in the sidebar with default set to "Chat Page"
169
+ page = st.sidebar.radio("Select a Page", ["Chat Page", "Info Page"], index=0)
170
 
171
  if page == "Chat Page":
172
  chat_page()
173
+ elif page == "Info Page":
174
+ info_page()
175
 
176
  def chat_page():
177
 
 
567
  st.components.v1.html(js)
568
 
569
 
570
+ def info_page():
571
  # About Page sidebar content
572
  # (Include any specific sidebar widgets for the About Page here)
573
 
574
+ # Sidebar
575
+ st.sidebar.title("Info Page")
576
+ st.sidebar.write("""**This is the Info Page <a href="https://www.citizensinformation.ie/" target="_blank">Citizens Information Website</a>**""", unsafe_allow_html=True)
577
+
578
+
579
+
580
  # Main content for the About Page
581
+ # Display the welcome message
582
+ with st.container():
583
+ st.markdown(f"""
584
+ <div style="display: flex; align-items: center;">
585
+ <img src='data:image/png;base64,{ci_icon}' style='width: 70px; height: 70px; margin-right: 10px;'>
586
+ <span style='font-size: 24px;'><b>Info Page</b></span>
587
+ </div>
588
+ """, unsafe_allow_html=True)
589
 
590
 
591