Upload folder using huggingface_hub
Browse files
Time_Series_Forecasting.ipynb
CHANGED
|
@@ -1280,9 +1280,35 @@
|
|
| 1280 |
},
|
| 1281 |
{
|
| 1282 |
"cell_type": "code",
|
| 1283 |
-
"execution_count":
|
| 1284 |
"metadata": {},
|
| 1285 |
-
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1286 |
"source": [
|
| 1287 |
"\n",
|
| 1288 |
"\n",
|
|
@@ -1332,17 +1358,34 @@
|
|
| 1332 |
" repo_id=repo_id,\n",
|
| 1333 |
" repo_type=repo_type,\n",
|
| 1334 |
" path_in_repo=\"\", \n",
|
| 1335 |
-
" # ignore_patterns=[\"*.tmp\",\"*.log\",\"__pycache__/*\",\".ipynb_checkpoints/*\"],\n",
|
| 1336 |
")\n",
|
| 1337 |
-
"print(\"
|
| 1338 |
-
"print(f\"
|
| 1339 |
]
|
| 1340 |
},
|
| 1341 |
{
|
| 1342 |
"cell_type": "code",
|
| 1343 |
-
"execution_count":
|
| 1344 |
"metadata": {},
|
| 1345 |
-
"outputs": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1346 |
"source": [
|
| 1347 |
"from huggingface_hub import HfApi\n",
|
| 1348 |
"\n",
|
|
|
|
| 1280 |
},
|
| 1281 |
{
|
| 1282 |
"cell_type": "code",
|
| 1283 |
+
"execution_count": 39,
|
| 1284 |
"metadata": {},
|
| 1285 |
+
"outputs": [
|
| 1286 |
+
{
|
| 1287 |
+
"name": "stdin",
|
| 1288 |
+
"output_type": "stream",
|
| 1289 |
+
"text": [
|
| 1290 |
+
"Paste your HF token (starts with hf_): ········\n"
|
| 1291 |
+
]
|
| 1292 |
+
},
|
| 1293 |
+
{
|
| 1294 |
+
"name": "stderr",
|
| 1295 |
+
"output_type": "stream",
|
| 1296 |
+
"text": [
|
| 1297 |
+
"Note: Environment variable`HF_TOKEN` is set and is the current active token independently from the token you've just configured.\n"
|
| 1298 |
+
]
|
| 1299 |
+
},
|
| 1300 |
+
{
|
| 1301 |
+
"name": "stdout",
|
| 1302 |
+
"output_type": "stream",
|
| 1303 |
+
"text": [
|
| 1304 |
+
" Authenticated as: azima4361\n",
|
| 1305 |
+
"Sample files: ['E:\\\\Career\\\\Data synthis\\\\DataSynthis_ML_JobTask\\\\.ipynb_checkpoints', 'E:\\\\Career\\\\Data synthis\\\\DataSynthis_ML_JobTask\\\\AAPL_stock_data.csv', 'E:\\\\Career\\\\Data synthis\\\\DataSynthis_ML_JobTask\\\\Time_Series_Forecasting.ipynb', 'E:\\\\Career\\\\Data synthis\\\\DataSynthis_ML_JobTask\\\\.ipynb_checkpoints\\\\Time_Series_Forecasting-checkpoint.ipynb']\n",
|
| 1306 |
+
" Repo ready: https://huggingface.co/azima4361/DataSynthis_ML_JobTask\n",
|
| 1307 |
+
" Folder uploaded. Commit: 93eb9bc36357ce51e6451bc22f99a2b8ceef9108\n",
|
| 1308 |
+
"Open: https://huggingface.co/azima4361/DataSynthis_ML_JobTask\n"
|
| 1309 |
+
]
|
| 1310 |
+
}
|
| 1311 |
+
],
|
| 1312 |
"source": [
|
| 1313 |
"\n",
|
| 1314 |
"\n",
|
|
|
|
| 1358 |
" repo_id=repo_id,\n",
|
| 1359 |
" repo_type=repo_type,\n",
|
| 1360 |
" path_in_repo=\"\", \n",
|
|
|
|
| 1361 |
")\n",
|
| 1362 |
+
"print(\" Folder uploaded. Commit:\", getattr(res, \"oid\", res))\n",
|
| 1363 |
+
"print(f\"Open: https://huggingface.co/{repo_id}\")\n"
|
| 1364 |
]
|
| 1365 |
},
|
| 1366 |
{
|
| 1367 |
"cell_type": "code",
|
| 1368 |
+
"execution_count": 41,
|
| 1369 |
"metadata": {},
|
| 1370 |
+
"outputs": [
|
| 1371 |
+
{
|
| 1372 |
+
"name": "stderr",
|
| 1373 |
+
"output_type": "stream",
|
| 1374 |
+
"text": [
|
| 1375 |
+
"No files have been modified since last commit. Skipping to prevent empty commit.\n"
|
| 1376 |
+
]
|
| 1377 |
+
},
|
| 1378 |
+
{
|
| 1379 |
+
"data": {
|
| 1380 |
+
"text/plain": [
|
| 1381 |
+
"CommitInfo(commit_url='https://huggingface.co/azima4361/DataSynthis_ML_JobTask/commit/93eb9bc36357ce51e6451bc22f99a2b8ceef9108', commit_message='Upload folder using huggingface_hub', commit_description='', oid='93eb9bc36357ce51e6451bc22f99a2b8ceef9108', pr_url=None, repo_url=RepoUrl('https://huggingface.co/azima4361/DataSynthis_ML_JobTask', endpoint='https://huggingface.co', repo_type='model', repo_id='azima4361/DataSynthis_ML_JobTask'), pr_revision=None, pr_num=None)"
|
| 1382 |
+
]
|
| 1383 |
+
},
|
| 1384 |
+
"execution_count": 41,
|
| 1385 |
+
"metadata": {},
|
| 1386 |
+
"output_type": "execute_result"
|
| 1387 |
+
}
|
| 1388 |
+
],
|
| 1389 |
"source": [
|
| 1390 |
"from huggingface_hub import HfApi\n",
|
| 1391 |
"\n",
|