File size: 632 Bytes
9de5882 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from huggingface_hub import HfApi\n",
"api = HfApi()\n",
"\n",
"api.upload_folder(\n",
" folder_path=\"/path/to/local/space\",\n",
" repo_id=\"username/my-cool-space\",\n",
" repo_type=\"space\",\n",
")"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "kd-llm-dc",
"language": "python",
"name": "python3"
},
"language_info": {
"name": "python",
"version": "3.10.11"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}
|