subhrajit-mohanty/minio-server
0
Reference Code
import os
from minio import Minio
from minio.error import S3Error
minio_endpoint = "subhrajit-mohanty-minio-server.hf.space"
minio_access_key = ""
minio_secret_key = ""
client = Minio(
minio_endpoint,
access_key=minio_access_key,
secret_key=minio_secret_key,
secure=True # Set to True since Hugging Face Spaces use HTTPS
)
bucket_name = "my-first-hf-bucket"
client.make_bucket(bucket_name)
client.list_buckets()
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
