from huggingface_hub import login | |
login() | |
from huggingface_hub import HfApi | |
api = HfApi() | |
api.upload_folder( | |
folder_path="/path/to/local/space", | |
repo_id="username/my-cool-space", | |
repo_type="space", | |
) |
from huggingface_hub import login | |
login() | |
from huggingface_hub import HfApi | |
api = HfApi() | |
api.upload_folder( | |
folder_path="/path/to/local/space", | |
repo_id="username/my-cool-space", | |
repo_type="space", | |
) |