Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,14 @@
|
|
1 |
import streamlit as st
|
2 |
-
from google.
|
3 |
-
from google_auth_oauthlib.flow import Flow
|
4 |
import json
|
5 |
|
6 |
# Function to create Google OAuth Flow object
|
7 |
def create_flow():
|
8 |
client_secret = st.secrets["client_secret"]
|
9 |
-
return Flow.
|
10 |
-
client_secret,
|
11 |
scopes=['https://www.googleapis.com/auth/userinfo.profile', 'https://www.googleapis.com/auth/userinfo.email'],
|
12 |
-
redirect_uri='https://huggingface.co/spaces/blazingbunny
|
13 |
)
|
14 |
|
15 |
# Function to generate Google Sign-In URL
|
|
|
1 |
import streamlit as st
|
2 |
+
from google.auth_oauthlib.flow import Flow
|
|
|
3 |
import json
|
4 |
|
5 |
# Function to create Google OAuth Flow object
|
6 |
def create_flow():
|
7 |
client_secret = st.secrets["client_secret"]
|
8 |
+
return Flow.from_client_config(
|
9 |
+
json.loads(client_secret),
|
10 |
scopes=['https://www.googleapis.com/auth/userinfo.profile', 'https://www.googleapis.com/auth/userinfo.email'],
|
11 |
+
redirect_uri='https://huggingface.co/spaces/blazingbunny:8501'
|
12 |
)
|
13 |
|
14 |
# Function to generate Google Sign-In URL
|