Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ try:
|
|
74 |
query_option = query_params['query'][0] #throws an exception when visiting http://host:port
|
75 |
option_selected = st.sidebar.selectbox('Pick option', options, index=options.index(query_option))
|
76 |
except: # catch exception and set query param to predefined value
|
77 |
-
|
78 |
query_params = st.experimental_get_query_params()
|
79 |
query_option = query_params['query'][0]
|
80 |
query_option = "ai"
|
74 |
query_option = query_params['query'][0] #throws an exception when visiting http://host:port
|
75 |
option_selected = st.sidebar.selectbox('Pick option', options, index=options.index(query_option))
|
76 |
except: # catch exception and set query param to predefined value
|
77 |
+
st.experimental_set_query_params(query="health") # set default
|
78 |
query_params = st.experimental_get_query_params()
|
79 |
query_option = query_params['query'][0]
|
80 |
query_option = "ai"
|