AEUPH commited on
Commit
597ae66
·
verified ·
1 Parent(s): eb8585b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -5,7 +5,7 @@ from urllib.parse import urlencode, quote_plus, urlparse
5
  def forward_parameters(target_url, extra_params):
6
  """
7
  Forward parameters to the target URL and return the response.
8
-
9
  :param target_url: The URL to which the parameters should be forwarded.
10
  :param extra_params: A dictionary of additional parameters to forward.
11
  :return: The response from the target URL.
@@ -29,6 +29,8 @@ st.title('HTTPS Streamlit Parameters Forwarder')
29
 
30
  # Correctly accessing the query parameters
31
  params = st.query_params # Access query parameters
 
 
32
  target_url = params.get('param1', [None])[0] # Extract the target URL
33
 
34
  if target_url:
 
5
  def forward_parameters(target_url, extra_params):
6
  """
7
  Forward parameters to the target URL and return the response.
8
+
9
  :param target_url: The URL to which the parameters should be forwarded.
10
  :param extra_params: A dictionary of additional parameters to forward.
11
  :return: The response from the target URL.
 
29
 
30
  # Correctly accessing the query parameters
31
  params = st.query_params # Access query parameters
32
+ st.write("Received parameters:", params) # Debug: Log received parameters
33
+
34
  target_url = params.get('param1', [None])[0] # Extract the target URL
35
 
36
  if target_url: