Spaces:
Running
Running
Update google_function.py
Browse files- google_function.py +2 -1
google_function.py
CHANGED
@@ -146,7 +146,8 @@ def connetti_google():
|
|
146 |
creds = None
|
147 |
st.write("Welcome to My App!")
|
148 |
auth_code = st.query_params.get("code")
|
149 |
-
flow =
|
|
|
150 |
if auth_code:
|
151 |
flow.fetch_token(code=auth_code)
|
152 |
credentials = flow.credentials
|
|
|
146 |
creds = None
|
147 |
st.write("Welcome to My App!")
|
148 |
auth_code = st.query_params.get("code")
|
149 |
+
flow = InstalledAppFlow.from_client_secrets_file("./credentials.json", SCOPES, redirect_uri='https://matteoscript-streamlitchat-new.hf.space')
|
150 |
+
print(flow)
|
151 |
if auth_code:
|
152 |
flow.fetch_token(code=auth_code)
|
153 |
credentials = flow.credentials
|