Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
srush
/
minichain
like
2
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
2becd91
minichain
/
make_all.py~
srush
Upload with huggingface_hub
2becd91
about 2 years ago
raw
Copy download link
history
blame
Safe
189 Bytes
import os
import glob
from huggingface_hub import HfApi
api =
HfApi()
repo_id =
"srush/minichain-"
name =
"all"
api.upload
_folder(
repo_id
=
repo_id
+
name
,
repo_type
=
"space"
,
folder_path
=
name
)