blazingbunny commited on
Commit
96fbe55
·
verified ·
1 Parent(s): ec26d3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -1,12 +1,12 @@
1
  import streamlit as st
2
  from requests_oauthlib import OAuth2Session
3
- import os # For loading credentials from environment variables
4
 
5
- # ************ SECURITY: Replace placeholders with your actual credentials ***************
6
- CLIENT_ID = os.environ.get('GOOGLE_CLIENT_ID') # Obtain from Google Cloud Console
7
- CLIENT_SECRET = os.environ.get('GOOGLE_CLIENT_SECRET') # Obtain from Google Cloud Console
8
- REDIRECT_URI = 'https://your-huggingface-space-app-url.hf.space' # Must match Google Project setting
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'