awacke1 commited on
Commit
62ee45d
β€’
1 Parent(s): 5391edd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,8 +50,6 @@ if query_params:
50
  selected_option = st.radio(
51
  "Param", options, index=ix, key="query", on_change=update_params
52
  )
53
- st.experimental_set_query_params(option=selected_option)
54
-
55
 
56
  # Text Input, check the query params set the text input to query value if in session
57
  try:
@@ -63,6 +61,8 @@ except: # catch exception and set query param to predefined value
63
  query_params = st.experimental_get_query_params()
64
  query_option = query_params['query'][0]
65
 
 
 
66
 
67
 
68
 
50
  selected_option = st.radio(
51
  "Param", options, index=ix, key="query", on_change=update_params
52
  )
 
 
53
 
54
  # Text Input, check the query params set the text input to query value if in session
55
  try:
61
  query_params = st.experimental_get_query_params()
62
  query_option = query_params['query'][0]
63
 
64
+ st.experimental_set_query_params(option=selected_option)
65
+
66
 
67
 
68