AEUPH commited on
Commit
b347104
·
verified ·
1 Parent(s): 12d4b63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -1,15 +1,10 @@
1
  import streamlit as st
2
  from streamlit.components.v1 import html
3
 
4
- # Function to extract query parameters
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
- # Get query parameters
12
- query_params = get_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: