Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
st.write("Query params:", st.query_params)
|
| 4 |
+
|
| 5 |
+
if st.button("Clear query params"):
|
| 6 |
+
st.query_params.clear()
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
st.subheader("Set query params")
|
| 10 |
+
key = st.text_input("Key")
|
| 11 |
+
value = st.text_input("Value")
|
| 12 |
+
if st.button("Set"):
|
| 13 |
+
st.query_params[key] = value
|