Samiraxio commited on
Commit
eb67e3e
·
verified ·
1 Parent(s): d78ff17

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. climateqa/engine/vectorstore.py +10 -3
climateqa/engine/vectorstore.py CHANGED
@@ -1,8 +1,15 @@
1
 
2
  from google.cloud import storage
3
- from google.oauth2 import service_account
4
- import json
5
- storage_client = storage.Client(service_account.Credentials.from_service_account_file(json.loads(os.environ['GOOGLE_APPLICATION_CREDENTIALS'])))
 
 
 
 
 
 
 
6
  #storage_client = storage.Client.create_anonymous_client()
7
  bucket_name = "docs-axio-clara"
8
 
 
1
 
2
  from google.cloud import storage
3
+ import os
4
+
5
+ with open("./cred.json","w") as fj:
6
+ fj.write(os.environ["CRED_JSON"])
7
+
8
+ storage_client = storage.Client()
9
+
10
+
11
+
12
+ #storage_client = storage.Client(service_account.Credentials.from_service_account_file(json.loads(os.environ['GOOGLE_APPLICATION_CREDENTIALS'])))
13
  #storage_client = storage.Client.create_anonymous_client()
14
  bucket_name = "docs-axio-clara"
15