Improve deps installation by converting them to one liner (#967)

This commit is contained in:
Sidharth Mohanty
2023-11-29 23:38:34 +05:30
committed by GitHub
parent 38426a7af1
commit e35eaf1bfc
13 changed files with 21 additions and 272 deletions

View File

@@ -31,16 +31,7 @@
},
"outputs": [],
"source": [
"!pip install embedchain"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install embedchain[dataloaders]"
"!pip install embedchain[dataloaders,huggingface_hub,opensource]"
]
},
{
@@ -49,39 +40,9 @@
"id": "nGnpSYAAh2bQ"
},
"source": [
"### Step-2: Set Hugging Face Hub related environment variables and install dependencies\n",
"### Step-2: Set Hugging Face Hub related environment variables\n",
"\n",
"You can find your `HUGGINGFACE_ACCESS_TOKEN` key on your [Hugging Face Hub dashboard](https://huggingface.co/settings/tokens) and install the dependencies"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "VfDNZJCqNfqo",
"outputId": "34894d35-7142-42ee-8564-2e9f718afcbb"
},
"outputs": [],
"source": [
"!pip install embedchain[huggingface-hub]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "SCNT8khqcR3G",
"outputId": "b789ee77-ef50-4330-8ac6-5da645dc36d6"
},
"outputs": [],
"source": [
"!pip install embedchain[opensource]"
"You can find your `HUGGINGFACE_ACCESS_TOKEN` key on your [Hugging Face Hub dashboard](https://huggingface.co/settings/tokens)"
]
},
{
@@ -209,15 +170,6 @@
" answer = app.query(question)\n",
" print(answer)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "HvZVn6gU5xB_"
},
"outputs": [],
"source": []
}
],
"metadata": {