Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,6 +22,10 @@ import os
|
|
| 22 |
from werkzeug.utils import secure_filename
|
| 23 |
from google.cloud import storage
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
###download both text and image from cloud to display
|
| 26 |
bucket_name = "trends_chrome_extension_bucket"
|
| 27 |
source_blob_name = 'lastradartext.txt'
|
|
|
|
| 22 |
from werkzeug.utils import secure_filename
|
| 23 |
from google.cloud import storage
|
| 24 |
|
| 25 |
+
import gcsfs
|
| 26 |
+
fs = gcsfs.GCSFileSystem(project='createinsightsproject',token='anon')
|
| 27 |
+
fs.ls('trends_chrome_extension_bucket')
|
| 28 |
+
|
| 29 |
###download both text and image from cloud to display
|
| 30 |
bucket_name = "trends_chrome_extension_bucket"
|
| 31 |
source_blob_name = 'lastradartext.txt'
|