Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.")
|