Upload folder using huggingface_hub
#1
by
de-francophones
- opened
- .ipynb_checkpoints/Untitled-checkpoint.ipynb +6 -0
- Enfants.zip +3 -0
- Untitled.ipynb +78 -0
.ipynb_checkpoints/Untitled-checkpoint.ipynb
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [],
|
| 3 |
+
"metadata": {},
|
| 4 |
+
"nbformat": 4,
|
| 5 |
+
"nbformat_minor": 5
|
| 6 |
+
}
|
Enfants.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f183d690d8fcae197dc5f1a6f44ff609a1c7935d6241fbe6af49d8226a1691a
|
| 3 |
+
size 21366179780
|
Untitled.ipynb
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"cell_type": "code",
|
| 5 |
+
"execution_count": 1,
|
| 6 |
+
"id": "1353934d",
|
| 7 |
+
"metadata": {},
|
| 8 |
+
"outputs": [],
|
| 9 |
+
"source": [
|
| 10 |
+
"from huggingface_hub import HfApi"
|
| 11 |
+
]
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"cell_type": "code",
|
| 15 |
+
"execution_count": null,
|
| 16 |
+
"id": "21302874",
|
| 17 |
+
"metadata": {},
|
| 18 |
+
"outputs": [
|
| 19 |
+
{
|
| 20 |
+
"name": "stderr",
|
| 21 |
+
"output_type": "stream",
|
| 22 |
+
"text": [
|
| 23 |
+
"C:\\Users\\lbourdois\\Anaconda3\\lib\\site-packages\\huggingface_hub\\utils\\_experimental.py:58: UserWarning: 'plan_multi_commits' is experimental and might be subject to breaking changes in the future. You can disable this warning by setting `HF_HUB_DISABLE_EXPERIMENTAL_WARNING=1` as environment variable.\n",
|
| 24 |
+
" warnings.warn(\n",
|
| 25 |
+
"C:\\Users\\lbourdois\\Anaconda3\\lib\\site-packages\\huggingface_hub\\utils\\_experimental.py:58: UserWarning: 'HfApi.create_commits_on_pr' is experimental and might be subject to breaking changes in the future. You can disable this warning by setting `HF_HUB_DISABLE_EXPERIMENTAL_WARNING=1` as environment variable.\n",
|
| 26 |
+
" warnings.warn(\n",
|
| 27 |
+
"C:\\Users\\lbourdois\\Anaconda3\\lib\\site-packages\\huggingface_hub\\utils\\_deprecation.py:131: FutureWarning: 'create_commits_on_pr' (from 'huggingface_hub.hf_api') is deprecated and will be removed from version '0.27'. This is an experimental feature. Please use `upload_large_folder` instead.\n",
|
| 28 |
+
" warnings.warn(warning_message, FutureWarning)\n"
|
| 29 |
+
]
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"data": {
|
| 33 |
+
"application/vnd.jupyter.widget-view+json": {
|
| 34 |
+
"model_id": "6cea70add0b64ab1a71ca23dd868c6af",
|
| 35 |
+
"version_major": 2,
|
| 36 |
+
"version_minor": 0
|
| 37 |
+
},
|
| 38 |
+
"text/plain": [
|
| 39 |
+
"Enfants.zip: 0%| | 0.00/21.4G [00:00<?, ?B/s]"
|
| 40 |
+
]
|
| 41 |
+
},
|
| 42 |
+
"metadata": {},
|
| 43 |
+
"output_type": "display_data"
|
| 44 |
+
}
|
| 45 |
+
],
|
| 46 |
+
"source": [
|
| 47 |
+
"api = HfApi()\n",
|
| 48 |
+
"api.upload_folder(\n",
|
| 49 |
+
" folder_path=r\"C:\\Users\\lbourdois\\Downloads\\tata\",\n",
|
| 50 |
+
" repo_id=\"FrancophonIA/CEFC-ORFEO\",\n",
|
| 51 |
+
" repo_type=\"dataset\",\n",
|
| 52 |
+
" multi_commits=True\n",
|
| 53 |
+
")"
|
| 54 |
+
]
|
| 55 |
+
}
|
| 56 |
+
],
|
| 57 |
+
"metadata": {
|
| 58 |
+
"kernelspec": {
|
| 59 |
+
"display_name": "Python 3 (ipykernel)",
|
| 60 |
+
"language": "python",
|
| 61 |
+
"name": "python3"
|
| 62 |
+
},
|
| 63 |
+
"language_info": {
|
| 64 |
+
"codemirror_mode": {
|
| 65 |
+
"name": "ipython",
|
| 66 |
+
"version": 3
|
| 67 |
+
},
|
| 68 |
+
"file_extension": ".py",
|
| 69 |
+
"mimetype": "text/x-python",
|
| 70 |
+
"name": "python",
|
| 71 |
+
"nbconvert_exporter": "python",
|
| 72 |
+
"pygments_lexer": "ipython3",
|
| 73 |
+
"version": "3.9.7"
|
| 74 |
+
}
|
| 75 |
+
},
|
| 76 |
+
"nbformat": 4,
|
| 77 |
+
"nbformat_minor": 5
|
| 78 |
+
}
|