Spaces:
Runtime error
Runtime error
Update google_function.py
Browse files149 unmodified lines150151152153153154155156149 unmodified lines 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) creds = flow.run_local_server(port=8501, open_browser=False) with open("token.json", "w") as token: token.write(creds.to_json()) return credsgoogle_function.py+1-1