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