This commit is contained in:
Jeremy Howard 2020-09-03 10:46:15 -07:00
parent 9557e74dee
commit dfecbae418
2 changed files with 160 additions and 164 deletions

View File

@ -313,7 +313,7 @@
"metadata": {},
"outputs": [],
"source": [
"key = 'XXX'"
"key = os.environ.get('AZURE_SEARCH_KEY', 'XXX')"
]
},
{
@ -324,11 +324,7 @@
"\n",
" export AZURE_SEARCH_KEY=your_key_here\n",
"\n",
"and then restart Jupyter Notebook, type this in a cell and execute it:\n",
"\n",
"```python\n",
"key = os.environ['AZURE_SEARCH_KEY']\n",
"```\n",
"and then restart Jupyter Notebook, and use the above line without editing it.\n",
"\n",
"Once you've set `key`, you can use `search_images_bing`. This function is provided by the small `utils` class included with the notebooks online. If you're not sure where a function is defined, you can just type it in your notebook to find out:"
]

File diff suppressed because one or more lines are too long