awacke1 commited on
Commit
1ecacf3
1 Parent(s): 8bdd97f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -150,7 +150,7 @@ st.title("Query Parameters Demo")
150
  st.write("Current Query Parameters:", st.query_params)
151
 
152
  # Example: Using query parameters to navigate or trigger functionalities
153
- if 'action' in st.query_params():
154
  action = st.query_params()['action'][0] # Get the first (or only) 'action' parameter
155
  if action == 'show_message':
156
  st.success("Showing a message because 'action=show_message' was found in the URL.")
 
150
  st.write("Current Query Parameters:", st.query_params)
151
 
152
  # Example: Using query parameters to navigate or trigger functionalities
153
+ if 'action' in st.query_params:
154
  action = st.query_params()['action'][0] # Get the first (or only) 'action' parameter
155
  if action == 'show_message':
156
  st.success("Showing a message because 'action=show_message' was found in the URL.")