mgbam commited on
Commit
5bd7142
Β·
verified Β·
1 Parent(s): 82f0c2f

Update landing.py

Browse files
Files changed (1) hide show
  1. landing.py +8 -3
landing.py CHANGED
@@ -8,6 +8,8 @@ def show_landing():
8
  Launch, manage, and optimize digital businesses at the click of a button.
9
  """
10
  )
 
 
11
  col1, col2, col3 = st.columns(3)
12
  features = [
13
  ("πŸ€– LLM-Powered", "Gemini Pro + GPT-4 fallback"),
@@ -19,7 +21,10 @@ def show_landing():
19
  col.write(desc)
20
 
21
  st.markdown("---")
22
- if st.button("πŸ‘‰ Try the Demo"):
23
- # Switch to the 'Launch' page and rerun
 
24
  st.session_state.page = "Launch"
25
- st.experimental_rerun()
 
 
 
8
  Launch, manage, and optimize digital businesses at the click of a button.
9
  """
10
  )
11
+
12
+ # Feature columns
13
  col1, col2, col3 = st.columns(3)
14
  features = [
15
  ("πŸ€– LLM-Powered", "Gemini Pro + GPT-4 fallback"),
 
21
  col.write(desc)
22
 
23
  st.markdown("---")
24
+
25
+ # Callback to switch page
26
+ def go_to_launch():
27
  st.session_state.page = "Launch"
28
+
29
+ # Button uses the callback before rerunning
30
+ st.button("πŸ‘‰ Try the Demo", on_click=go_to_launch)