Fixes to imports and repo link thanks to Trung N

This commit is contained in:
Edward Donner
2025-06-10 19:27:38 -04:00
parent ba4325e49a
commit e3e6cb752a
6 changed files with 67 additions and 9 deletions

View File

@@ -84,6 +84,31 @@
"os.environ['HF_TOKEN'] = os.getenv('HF_TOKEN', 'your-key-if-not-using-env')"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "1006966f-96b7-4e1a-93f0-2bb9a09057c8",
"metadata": {},
"outputs": [],
"source": [
"# Log in to HuggingFace\n",
"\n",
"hf_token = os.environ['HF_TOKEN']\n",
"login(hf_token, add_to_git_credential=True)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "de0e4b22-ee61-4b79-95bc-3cd707d5f83d",
"metadata": {},
"outputs": [],
"source": [
"# Another import after Logging in to Hugging Face - thank you Trung N.!\n",
"\n",
"from items import Item"
]
},
{
"cell_type": "code",
"execution_count": null,