MatteoScript commited on
Commit
8d59632
·
verified ·
1 Parent(s): 7c79c55

Update google_function.py

Browse files
Files changed (1) hide show
  1. 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 = google_auth_oauthlib.flow.Flow.from_client_secrets_file("./credentials.json", SCOPES, redirect_uri='https://matteoscript-streamlitchat-new.hf.space')
 
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