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

@@ -48,7 +48,6 @@
"from sentence_transformers import SentenceTransformer\n",
"from datasets import load_dataset\n",
"import chromadb\n",
"from items import Item\n",
"from testing import Tester"
]
},
@@ -66,6 +65,31 @@
"os.environ['HF_TOKEN'] = os.getenv('HF_TOKEN', 'your-key-if-not-using-env')"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "ce73b034-9ec1-4533-ba41-3e57c7878b61",
"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": "4c01daad-86b0-4bc0-91ba-20a64df043ed",
"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,
@@ -495,7 +519,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.11"
"version": "3.11.12"
}
},
"nbformat": 4,