Spaces:
Sleeping
Sleeping
Update google_function.py
Browse files145 unmodified lines146147148149149150151152153145 unmodified lines creds = None st.write("Welcome to My App!") auth_code = st.query_params.get("code") flow = google_auth_oauthlib.flow.Flow.from_client_secrets_file("./credentials.json", SCOPES, redirect_uri='https://matteoscript-streamlitchat-new.hf.space') flow = InstalledAppFlow.from_client_secrets_file("./credentials.json", SCOPES, redirect_uri='https://matteoscript-streamlitchat-new.hf.space') print(flow) if auth_code: flow.fetch_token(code=auth_code) credentials = flow.credentialsgoogle_function.py+2-1