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

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. climateqa/engine/vectorstore.py +3 -1
climateqa/engine/vectorstore.py CHANGED
@@ -1,6 +1,8 @@
1
 
2
  from google.cloud import storage
3
- storage_client = storage.Client()
 
 
4
  #storage_client = storage.Client.create_anonymous_client()
5
  bucket_name = "docs-axio-clara"
6
 
 
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