SUBHRAJIT MOHANTY commited on
Commit
fdc18fa
·
1 Parent(s): 644b2ce

Readme Updated

Browse files
Files changed (1) hide show
  1. README.md +26 -0
README.md CHANGED
@@ -7,4 +7,30 @@ sdk: docker
7
  pinned: false
8
  ---
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
7
  pinned: false
8
  ---
9
 
10
+ ## Reference Code
11
+
12
+ ```
13
+ import os
14
+ from minio import Minio
15
+ from minio.error import S3Error
16
+
17
+ minio_endpoint = "subhrajit-mohanty-minio-server.hf.space"
18
+
19
+ minio_access_key = ""
20
+ minio_secret_key = ""
21
+
22
+ client = Minio(
23
+ minio_endpoint,
24
+ access_key=minio_access_key,
25
+ secret_key=minio_secret_key,
26
+ secure=True # Set to True since Hugging Face Spaces use HTTPS
27
+ )
28
+
29
+ bucket_name = "my-first-hf-bucket"
30
+ client.make_bucket(bucket_name)
31
+
32
+ client.list_buckets()
33
+
34
+ ```
35
+
36
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference