awacke1 commited on
Commit
095df8d
β€’
1 Parent(s): 6d26b10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -41,6 +41,7 @@ def factorial(n):
41
 
42
  # callback to update query param on selectbox change
43
  def update_params():
 
44
  #try:
45
  #st.experimental_set_query_params(option=st.session_state.query)
46
  #except ValueError:
@@ -53,7 +54,8 @@ query_params = st.experimental_get_query_params()
53
  ix = 0
54
  if query_params:
55
  try:
56
- ix = options.index(query_params['query'][0])
 
57
  except ValueError:
58
  pass
59
  selected_option = st.radio(
 
41
 
42
  # callback to update query param on selectbox change
43
  def update_params():
44
+ print("update1")
45
  #try:
46
  #st.experimental_set_query_params(option=st.session_state.query)
47
  #except ValueError:
 
54
  ix = 0
55
  if query_params:
56
  try:
57
+ q0 = query_params['query'][0]
58
+ ix = options.index(q0)
59
  except ValueError:
60
  pass
61
  selected_option = st.radio(