AEUPH commited on
Commit
3c5a6dd
·
verified ·
1 Parent(s): 42105ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,8 +22,8 @@ def forward_parameters(target_url, extra_params):
22
  # Streamlit interface
23
  st.title('HTTPS Streamlit Parameters Forwarder')
24
 
25
- # Extracting parameters from the URL using the updated method
26
- params = st.query_params()
27
  target_url = params.get('param1', [None])[0] # Extract the target URL
28
 
29
  if target_url:
 
22
  # Streamlit interface
23
  st.title('HTTPS Streamlit Parameters Forwarder')
24
 
25
+ # Correctly accessing the query parameters
26
+ params = st.query_params # This is the correct usage
27
  target_url = params.get('param1', [None])[0] # Extract the target URL
28
 
29
  if target_url: