add gif of gradio colab demo and remove some TK's:

This commit is contained in:
Daniel Bourke committed 2022-08-25 18:05:08 +10:00
1 parent 7384539eb4
commit 83c4fa825f
1 file changed
+10 -8
+10 -8
View File
@@ -2989,7 +2989,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"TK image - gif of Gradio demo working in Google Colab, show the link to the demo as well \n",
"<img src=\"https://github.com/mrdbourke/pytorch-deep-learning/raw/main/images/09-gradio-running-in-google-colab-and-in-browser.gif\" alt=\"Gradio demo running in Google Colab and on the web\" width=750/>\n",
"\n",
"*FoodVision Mini Gradio demo running in Google Colab and in the browser (the link when running from Google Colab only lasts for 72 hours). You can see the [permanent live demo on Hugging Face Spaces](https://huggingface.co/spaces/mrdbourke/foodvision_mini).*\n",
"\n",
"Woohoo!!! What an epic demo!!!\n",
"\n",
@@ -3626,25 +3628,25 @@
"tags": []
},
"source": [
"### TK - 9.2 Running our FoodVision Mini demo locally\n",
"### 9.2 Running our FoodVision Mini demo locally\n",
"\n",
"If you download the `foodvision_mini.zip` file, you can test it locally by:\n",
"1. Unzipping the file.\n",
"2. Opening terminal or a command line prompt.\n",
"3. Changing into the `foodvision_mini` directory (`cd foodvision_mini`).\n",
"4. TK create an environment with `python3 -m venv env`... activate it... use it...\n",
"5. Installing the requirements (`pip install requirements.txt`).\n",
"4. Creating an environment (`python3 -m venv env`).\n",
"5. Activating the environment (`source env/bin/activate`).\n",
"5. Installing the requirements (`pip install -r requirements.txt`, the \"`-r`\" is for recursive).\n",
" * **Note:** If you're facing errors, you may need to upgrade `pip` first: `pip install --upgrade pip`\n",
"6. Run the app (`python app.py`).\n",
"\n",
"This should result in a Gradio demo just like the one we built above running locally on your machine.\n",
"This should result in a Gradio demo just like the one we built above running locally on your machine at a URL such as `http://127.0.0.1:7860/`.\n",
"\n",
"> **Note:** If you run the app locally and you notice a `flagged/` directory appear, it contains samples that have been \"flagged\". \n",
">\n",
"> For example, if someone tries the demo and the model produces an incorrect result, the sample can be \"flagged\" and reviewed for later.\n",
"> \n",
"> For more on flagging in Gradio, see the [flagging documentation](https://gradio.app/docs/#flagging).\n",
"\n",
"TK image - gif of the above workflow: Google Colab -> Download `foodvision_mini.zip` -> unzip -> install dependencies -> run locally "
"> For more on flagging in Gradio, see the [flagging documentation](https://gradio.app/docs/#flagging)."
]
},
{