Spaces:
Running
Running
Update src/google_docs_api_processing.py
Browse files
src/google_docs_api_processing.py
CHANGED
@@ -23,7 +23,8 @@ def google_docs_auth():
|
|
23 |
flow = InstalledAppFlow.from_client_secrets_file(
|
24 |
'credentials.json', SCOPES
|
25 |
)
|
26 |
-
creds = flow.run_local_server(port=0)
|
|
|
27 |
# Save the credentials for the next run
|
28 |
with open('token.json', 'w') as token:
|
29 |
token.write(creds.to_json())
|
|
|
23 |
flow = InstalledAppFlow.from_client_secrets_file(
|
24 |
'credentials.json', SCOPES
|
25 |
)
|
26 |
+
# creds = flow.run_local_server(port=0)
|
27 |
+
creds = flow.run_console()
|
28 |
# Save the credentials for the next run
|
29 |
with open('token.json', 'w') as token:
|
30 |
token.write(creds.to_json())
|