Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
import streamlit as st
|
2 |
from requests_oauthlib import OAuth2Session
|
3 |
-
import os # For loading
|
4 |
|
5 |
-
# ************
|
6 |
-
CLIENT_ID =
|
7 |
-
CLIENT_SECRET =
|
8 |
-
REDIRECT_URI = 'https://
|
9 |
-
#
|
10 |
|
11 |
# OAuth Configuration
|
12 |
AUTHORIZATION_BASE_URL = 'https://accounts.google.com/o/oauth2/v2/auth'
|
|
|
1 |
import streamlit as st
|
2 |
from requests_oauthlib import OAuth2Session
|
3 |
+
import os # For loading an optional client secret from environment variables
|
4 |
|
5 |
+
# ************ Credentials (Important Security Note - See above warning) ***************
|
6 |
+
CLIENT_ID = "243651188615-q9970hsa72e028jnu3qqsup6vl02epnn.apps.googleusercontent.com"
|
7 |
+
CLIENT_SECRET = st.secrets["google_search_console_api"] # Retrieve from Hugging Face Secrets
|
8 |
+
REDIRECT_URI = 'https://huggingface.co/spaces/blazingbunny/GSC-analytics/'
|
9 |
+
# *********************************************
|
10 |
|
11 |
# OAuth Configuration
|
12 |
AUTHORIZATION_BASE_URL = 'https://accounts.google.com/o/oauth2/v2/auth'
|