Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -202,8 +202,8 @@ if st.button("Clear Query Parameters"):
|
|
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
|
207 |
# Display content or image based on the query
|
208 |
display_content_or_image(query)
|
209 |
|
|
|
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
|
207 |
# Display content or image based on the query
|
208 |
display_content_or_image(query)
|
209 |
|