diff --git a/02_production.ipynb b/02_production.ipynb index 245f469..f32e51c 100644 --- a/02_production.ipynb +++ b/02_production.ipynb @@ -2,9 +2,18 @@ "cells": [ { "cell_type": "code", - "execution_count": null, + "execution_count": 13, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "'[' is not recognized as an internal or external command,\n", + "operable program or batch file.\n" + ] + } + ], "source": [ "#hide\n", "! [ -e /content ] && pip install -Uqq fastbook\n", @@ -14,7 +23,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 14, "metadata": {}, "outputs": [], "source": [ @@ -331,7 +340,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 15, "metadata": {}, "outputs": [ { @@ -340,7 +349,7 @@ "" ] }, - "execution_count": null, + "execution_count": 15, "metadata": {}, "output_type": "execute_result" } @@ -349,6 +358,56 @@ "search_images_bing" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "#### If you face issues while using the Azure Bing Image Search Service, Simply use the api function for image search which uses the duckduckgo search engine. \n", + "\n", + "This service is free and usable simply by using the *search_images_ddg* function" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 17, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "search_images_ddg" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "150" + ] + }, + "execution_count": 18, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "results = search_images_ddg('black bear',max_images=150)\n", + "len(results)" + ] + }, { "cell_type": "code", "execution_count": null, @@ -2004,9 +2063,21 @@ "split_at_heading": true }, "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.10.4" } }, "nbformat": 4,