hra commited on
Commit
13ef9bd
·
1 Parent(s): 34180dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -25,8 +25,12 @@ from google.cloud import storage
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'
32
  destination_file_name= 'lastradartext.txt'
@@ -37,6 +41,7 @@ blob.download_to_filename(destination_file_name)
37
 
38
  with open('lastradartext.txt', 'r') as file:
39
  data_old = file.read()
 
40
  value1,value2,value3,value4,value5,value6=data_old.split('SEPERATOR')
41
 
42
  source_blob_name = 'lasttechradar.png'
 
25
  import gcsfs
26
  fs = gcsfs.GCSFileSystem(project='createinsightsproject',token='anon')
27
  fs.ls('trends_chrome_extension_bucket')
28
+ print('Started')
29
+ with fs.open('trends_chrome_extension_bucket/lastradartext.txt', 'rb') as file:
30
+ data_old = file.read()
31
+ print(data_old)
32
  ###download both text and image from cloud to display
33
+ """
34
  bucket_name = "trends_chrome_extension_bucket"
35
  source_blob_name = 'lastradartext.txt'
36
  destination_file_name= 'lastradartext.txt'
 
41
 
42
  with open('lastradartext.txt', 'r') as file:
43
  data_old = file.read()
44
+ """
45
  value1,value2,value3,value4,value5,value6=data_old.split('SEPERATOR')
46
 
47
  source_blob_name = 'lasttechradar.png'