awacke1 commited on
Commit
a6aee6a
1 Parent(s): 9550eef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -16
app.py CHANGED
@@ -163,10 +163,9 @@ def display_content_or_image(query):
163
 
164
 
165
 
166
- # Old Query Params:
167
 
168
- st.markdown("### Query Parameters - These Deep Link Map to Remixable Methods")
169
  st.write("Current Query Parameters:", st.query_params)
 
170
 
171
  # Example: Using query parameters to navigate or trigger functionalities
172
  if 'action' in st.query_params:
@@ -185,22 +184,8 @@ if 'multi' in st.query_params:
185
  # Manual entry for demonstration
186
  st.write("Enter query parameters in the URL like this: ?action=show_message&multi=1&multi=2")
187
 
188
- # Clear query parameters button
189
- if st.button("Clear Query Parameters"):
190
- clear_query_params()
191
- st.experimental_rerun()
192
-
193
-
194
-
195
 
196
-
197
- # New Query Params:
198
-
199
-
200
 
201
- # Streamlit UI for displaying query parameters and handling actions
202
- st.markdown("### Query Parameters - Navigate or Trigger Functionalities")
203
- st.write("Current Query Parameters:", st.query_params)
204
 
205
  if 'query' in st.query_params:
206
  query = st.query_params['query'][0] # Get the query parameter
 
163
 
164
 
165
 
 
166
 
 
167
  st.write("Current Query Parameters:", st.query_params)
168
+ st.markdown("### Query Parameters - These Deep Link Map to Remixable Methods, Navigate or Trigger Functionalities")
169
 
170
  # Example: Using query parameters to navigate or trigger functionalities
171
  if 'action' in st.query_params:
 
184
  # Manual entry for demonstration
185
  st.write("Enter query parameters in the URL like this: ?action=show_message&multi=1&multi=2")
186
 
 
 
 
 
 
 
 
187
 
 
 
 
 
188
 
 
 
 
189
 
190
  if 'query' in st.query_params:
191
  query = st.query_params['query'][0] # Get the query parameter