<jupyter_start><jupyter_text>Unsplash Image SearchThe project allows you to search images on Unsplash by using a natural words description. It is powered by OpenAI's [CLIP model](https://github.com/openai/CLIP).Use this notebook to setup your environment.  Install the DependenciesTo install the project's dependencies (including those for CLIP) run the following in the terminal. It is a good idea to create a virtual environment.```pip install -r requirements.txt```  Clone the CLIP repository and copy the code<jupyter_code># Clone the CLIP repository
!git clone https://github.com/openai/CLIP.git

# Move the CLIP source files and the vocabulary in the root directory. 
# Unfortunately, the CLIP code is not organized as a module, so it cannot be imported easily
!mv CLIP/*.py .
!mv CLIP/*.gz .<jupyter_output>Cloning into 'CLIP'...
remote: Enumerating objects: 24, done.[K
remote: Total 24 (delta 0), reused 0 (delta 0), pack-reused 24[K
Receiving objects: 100% (24/24), 6.20 MiB | 4.26 MiB/s, done.
Resolving deltas: 100% (9/9), done.
{'fraction_non_alphanumeric': 0.09500959692898273, 'fraction_numerical': 0.025911708253358926, 'mean_word_length': 4.6378378378378375, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '486126', 'license': 'MIT', 'n_tokens_mistral': 344, 'n_tokens_neox': 312, 'n_words': 141, 'path': '01-setup-clip.ipynb', 'repo_name': 'jbboin/natural-language-image-search', 'size': '1042'}