diff --git a/README.md b/README.md index f2247a58..25b40526 100644 --- a/README.md +++ b/README.md @@ -119,8 +119,8 @@ To install Crawl4AI as a library, follow these steps: ```bash virtualenv venv source venv/bin/activate +pip install transformers torch chromedriver_autoinstaller pip install git+https://github.com/unclecode/crawl4ai.git -python docs/examples/quickstart.py ``` 2. Alternatively, you can clone the repository and install the package locally: @@ -129,6 +129,7 @@ virtualenv venv source venv/bin/activate git clone https://github.com/unclecode/crawl4ai.git cd crawl4ai +pip install transformers torch chromedriver_autoinstaller pip install -e . ``` diff --git a/crawl4ai/model_loader.py b/crawl4ai/model_loader.py index e8488dbe..e51dfeac 100644 --- a/crawl4ai/model_loader.py +++ b/crawl4ai/model_loader.py @@ -43,7 +43,7 @@ def load_spacy_model(): model_folder = os.path.join(home_folder, name) # Check if the model directory already exists - if True or not (Path(model_folder).exists() and any(Path(model_folder).iterdir())): + if not (Path(model_folder).exists() and any(Path(model_folder).iterdir())): repo_url = "https://github.com/unclecode/crawl4ai.git" # branch = "main" branch = MODEL_REPO_BRANCH diff --git a/pages/partial/installation.html b/pages/partial/installation.html index 919db240..cf91f903 100644 --- a/pages/partial/installation.html +++ b/pages/partial/installation.html @@ -27,7 +27,11 @@

Installation 💻

Install the package from GitHub:
pip install git+https://github.com/unclecode/crawl4ai.git
+ >virtualenv venv +source venv/bin/activate +pip install git+https://github.com/unclecode/crawl4ai.git +pip install transformers torch chromedriver_autoinstaller +
  • Alternatively, you can clone the repository and install the package locally: @@ -37,6 +41,7 @@

    Installation 💻

    source venv/bin/activate git clone https://github.com/unclecode/crawl4ai.git cd crawl4ai +pip install transformers torch chromedriver_autoinstaller pip install -e .