From b144c7dcccb811342b884263852568820c748faf Mon Sep 17 00:00:00 2001 From: Deshraj Yadav Date: Mon, 13 Nov 2023 12:17:27 -0800 Subject: [PATCH] [Bugfix] Fix hugging face command (#944) --- docs/components/llms.mdx | 2 +- embedchain/llm/huggingface.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/components/llms.mdx b/docs/components/llms.mdx index 2160ced4..86c84e8e 100644 --- a/docs/components/llms.mdx +++ b/docs/components/llms.mdx @@ -237,7 +237,7 @@ llm: Install related dependencies using the following command: ```bash -pip install --upgrade 'embedchain[huggingface_hub]' +pip install --upgrade 'embedchain[huggingface-hub]' ``` First, set `HUGGINGFACE_ACCESS_TOKEN` in environment variable which you can obtain from [their platform](https://huggingface.co/settings/tokens). diff --git a/embedchain/llm/huggingface.py b/embedchain/llm/huggingface.py index 358b1c2a..97adc67b 100644 --- a/embedchain/llm/huggingface.py +++ b/embedchain/llm/huggingface.py @@ -20,7 +20,7 @@ class HuggingFaceLlm(BaseLlm): except ModuleNotFoundError: raise ModuleNotFoundError( "The required dependencies for HuggingFaceHub are not installed." - 'Please install with `pip install --upgrade "embedchain[huggingface_hub]"`' + 'Please install with `pip install --upgrade "embedchain[huggingface-hub]"`' ) from None super().__init__(config=config) diff --git a/pyproject.toml b/pyproject.toml index 317a8026..36e2cc05 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "embedchain" -version = "0.1.7" +version = "0.1.8" description = "Data platform for LLMs - Load, index, retrieve and sync any unstructured data" authors = [ "Taranjeet Singh ",