Spaces:
Running
Running
Update google_function.py
Browse files148 unmodified lines149150151152152153154155148 unmodified lines if creds and creds.expired and creds.refresh_token: creds.refresh(Request()) else: flow = InstalledAppFlow.from_client_secrets_file("./credentials.json", SCOPES) flow = InstalledAppFlow.from_client_secrets_file("./credentials.json", SCOPES, redirect_uri='https://matteoscript-streamlitchat-new.hf.space') creds = flow.run_local_server(port=0) with open("token.json", "w") as token: token.write(creds.to_json())google_function.py+1-1