Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,10 @@
|
|
1 |
import streamlit as st
|
2 |
from streamlit.components.v1 import html
|
3 |
|
4 |
-
#
|
5 |
-
def get_query_params():
|
6 |
-
# Use st.query_params to access query parameters
|
7 |
-
return st.query_params()
|
8 |
-
|
9 |
-
# Main function where we handle the redirect
|
10 |
def main():
|
11 |
-
#
|
12 |
-
query_params =
|
13 |
|
14 |
# Check if 'param1' exists in the query parameters
|
15 |
if 'param1' in query_params:
|
|
|
1 |
import streamlit as st
|
2 |
from streamlit.components.v1 import html
|
3 |
|
4 |
+
# Directly access query parameters without a separate function
|
|
|
|
|
|
|
|
|
|
|
5 |
def main():
|
6 |
+
# Access query parameters directly
|
7 |
+
query_params = st.query_params
|
8 |
|
9 |
# Check if 'param1' exists in the query parameters
|
10 |
if 'param1' in query_params:
|