Upload folder using huggingface_hub
Browse files
climateqa/engine/vectorstore.py
CHANGED
@@ -5,6 +5,14 @@ import os
|
|
5 |
with open("./cred.json","w") as fj:
|
6 |
fj.write(os.environ["CRED_JSON"])
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
storage_client = storage.Client()
|
9 |
|
10 |
bucket_name = "docs-axio-clara"
|
|
|
5 |
with open("./cred.json","w") as fj:
|
6 |
fj.write(os.environ["CRED_JSON"])
|
7 |
|
8 |
+
print(os.environ["CRED_JSON"])
|
9 |
+
print(os.environ["GOOGLE_APPLICATION_CREDENTIALS"])
|
10 |
+
|
11 |
+
print("\nContenu du fichier cred.json :")
|
12 |
+
with open("./cred.json", "r") as fj:
|
13 |
+
cred_json_content = fj.read()
|
14 |
+
print(cred_json_content)
|
15 |
+
|
16 |
storage_client = storage.Client()
|
17 |
|
18 |
bucket_name = "docs-axio-clara"
|