ppsingh commited on
Commit
30f0829
·
1 Parent(s): 4fc18fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -113,26 +113,26 @@ col1_one = col1.button("CARTE", key="1")
113
  col2_one = col2.button("TABLEAU", key="2")
114
  col3_one = col3.button("SYNTHÈSE", key="3")
115
 
116
- if col1_one or session_state.col1:
117
- session_state.col1 = True
118
- session_state.col2 = False
119
- session_state.col3 = False
120
  sel_Map = st.selectbox("Choose Map type :", options=['Hello1', 'Hello2'], index=1)
121
  if sel_Map == 'Hello1':
122
  st.write("Hello world! 1")
123
  elif sel_Map == 'Hello2':
124
  st.write("Hello world! 2")
125
 
126
- if col2_one or session_state.col2:
127
- session_state.col1 = False
128
- session_state.col2 = True
129
- session_state.col3 = False
130
  st.write("Hello world! 3")
131
 
132
- if col3_one or session_state.col3:
133
- session_state.col1 = False
134
- session_state.col2 = False
135
- session_state.col3 = True
136
  st.write("Hello world! 4")
137
 
138
 
 
113
  col2_one = col2.button("TABLEAU", key="2")
114
  col3_one = col3.button("SYNTHÈSE", key="3")
115
 
116
+ if col1_one or st.session_state.col1:
117
+ st.session_state.col1 = True
118
+ st.session_state.col2 = False
119
+ st.session_state.col3 = False
120
  sel_Map = st.selectbox("Choose Map type :", options=['Hello1', 'Hello2'], index=1)
121
  if sel_Map == 'Hello1':
122
  st.write("Hello world! 1")
123
  elif sel_Map == 'Hello2':
124
  st.write("Hello world! 2")
125
 
126
+ if col2_one or st.session_state.col2:
127
+ st.session_state.col1 = False
128
+ st.session_state.col2 = True
129
+ st.session_state.col3 = False
130
  st.write("Hello world! 3")
131
 
132
+ if col3_one or st.session_state.col3:
133
+ st.session_state.col1 = False
134
+ st.session_state.col2 = False
135
+ st.session_state.col3 = True
136
  st.write("Hello world! 4")
137
 
138