Spaces:
Running
Running
poemsforaphrodite
commited on
Commit
•
ee5283f
1
Parent(s):
28c5649
Update app.py
Browse files
app.py
CHANGED
@@ -47,9 +47,9 @@ DF_PREVIEW_ROWS = 100
|
|
47 |
# -------------
|
48 |
|
49 |
def setup_streamlit():
|
50 |
-
st.set_page_config(page_title="
|
51 |
-
st.title("
|
52 |
-
st.markdown(f"### Lightweight GSC Data Extractor. (Max {MAX_ROWS:,} Rows)")
|
53 |
st.divider()
|
54 |
|
55 |
def init_session_state():
|
@@ -346,15 +346,10 @@ def main():
|
|
346 |
|
347 |
# Directly access query parameters using st.query_params
|
348 |
query_params = st.query_params
|
349 |
-
|
350 |
-
# Print the query parameters
|
351 |
-
print(query_params)
|
352 |
-
|
353 |
# Retrieve the 'code' parameter
|
354 |
auth_code = query_params.get("code", None)
|
355 |
-
|
356 |
-
# Since st.query_params returns a string (not a list), no need for [0]
|
357 |
-
|
358 |
|
359 |
if auth_code and 'credentials' not in st.session_state:
|
360 |
st.session_state.auth_flow.fetch_token(code=auth_code)
|
|
|
47 |
# -------------
|
48 |
|
49 |
def setup_streamlit():
|
50 |
+
st.set_page_config(page_title="GSC", layout="wide")
|
51 |
+
st.title("GSC")
|
52 |
+
#st.markdown(f"### Lightweight GSC Data Extractor. (Max {MAX_ROWS:,} Rows)")
|
53 |
st.divider()
|
54 |
|
55 |
def init_session_state():
|
|
|
346 |
|
347 |
# Directly access query parameters using st.query_params
|
348 |
query_params = st.query_params
|
349 |
+
|
|
|
|
|
|
|
350 |
# Retrieve the 'code' parameter
|
351 |
auth_code = query_params.get("code", None)
|
352 |
+
|
|
|
|
|
353 |
|
354 |
if auth_code and 'credentials' not in st.session_state:
|
355 |
st.session_state.auth_flow.fetch_token(code=auth_code)
|