Spaces:
Runtime error
Runtime error
Commit ·
5d694fe
1
Parent(s): fcb6c4a
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,9 +17,6 @@ with open('cloud-storage.encrypted', 'rb') as fp:
|
|
| 17 |
# then save creds to file
|
| 18 |
with open('cloud-storage.json', 'w', encoding='utf-8') as fp:
|
| 19 |
fp.write(json.dumps(creds, indent=4))
|
| 20 |
-
with open('cloud-storage.json', 'w') as fp:
|
| 21 |
-
fp.write(json.dumps(G_API, indent=4))
|
| 22 |
-
del G_API
|
| 23 |
# connect to Cloud Storage
|
| 24 |
os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = 'cloud-storage.json'
|
| 25 |
storage_client = storage.Client()
|
|
|
|
| 17 |
# then save creds to file
|
| 18 |
with open('cloud-storage.json', 'w', encoding='utf-8') as fp:
|
| 19 |
fp.write(json.dumps(creds, indent=4))
|
|
|
|
|
|
|
|
|
|
| 20 |
# connect to Cloud Storage
|
| 21 |
os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = 'cloud-storage.json'
|
| 22 |
storage_client = storage.Client()
|