We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce370dd commit 6db0f5fCopy full SHA for 6db0f5f
silnlp/common/environment.py
@@ -28,7 +28,7 @@ def __init__(self):
28
self.root_dir = Path.home() / ".silnlp"
29
self.assets_dir = Path(__file__).parent.parent / "assets"
30
self.is_bucket = False
31
- self.bucket_service = os.getenv("BUCKET_SERVICE", "minio").lower()
+ self.bucket_service = os.getenv("BUCKET_SERVICE", "").lower()
32
33
self.set_data_dir()
34
@@ -188,6 +188,9 @@ def set_s3_bucket(self):
188
self.bucket_service = "aws"
189
return
190
191
+ if self.bucket_service == "":
192
+ self.bucket_service = "minio"
193
+
194
if self.bucket_service not in ["minio", "b2"]:
195
LOGGER.warning("BUCKET_SERVICE environment variable must be either 'minio' or 'b2'. Default is 'minio'.")
196
self.bucket_service = "minio"
0 commit comments