Spaces:
Runtime error
Runtime error
Update google_function.py
Browse files148 unmodified lines149150151152153154155148 unmodified linesif creds and creds.expired and creds.refresh_token:creds.refresh(Request())else:flow = InstalledAppFlow.from_client_secrets_file("./credentials.json", SCOPES)creds = flow.run_local_server(port=0)with open("token.json", "w") as token:token.write(creds.to_json())148 unmodified lines149150151152153154155148 unmodified linesif creds and creds.expired and creds.refresh_token:creds.refresh(Request())else: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