whitphx HF staff commited on
Commit
f1aa557
1 Parent(s): 5342d90

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
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