Upload folder using huggingface_hub
Browse files
climateqa/engine/vectorstore.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
|
2 |
from google.cloud import storage
|
3 |
-
|
|
|
|
|
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 |
|