Update Train_JupyterLab.ipynb

This commit is contained in:
Victor Hall 2023-06-12 16:25:22 -04:00 committed by GitHub
parent b69793623b
commit 8713a94ff5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -261,9 +261,9 @@
"out = Output()\n",
"\n",
"def upload_ckpts(_):\n",
" repo_id=f\"{hfuser.value}/{hfrepo.value}\"\n",
" repo_id=f"{hfuser.value or hfuser.placeholder}/{hfrepo.value or hfrepo.placeholder}"\"\n",
" with out:\n",
" if ckpt_picker is None or len(ckpt_picker) < 1:\n",
" if ckpt_picker is None or len(ckpt_picker.value) < 1:\n",
" print(\"Nothing selected for upload, make sure to click one of the ckpt files in the list, or, you have no ckpt files in the current directory.\")\n",
" for ckpt in ckpt_picker.value:\n",
" print(f\"Uploading to HF: huggingface.co/{repo_id}/{ckpt}\")\n",