From 83c4fa825fb5111eb501ed8d674619e03bd33149 Mon Sep 17 00:00:00 2001 From: Daniel Bourke Date: Thu, 25 Aug 2022 18:05:08 +1000 Subject: [PATCH] add gif of gradio colab demo and remove some TK's: --- 09_pytorch_model_deployment.ipynb | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/09_pytorch_model_deployment.ipynb b/09_pytorch_model_deployment.ipynb index 2f0058a..0402b79 100644 --- a/09_pytorch_model_deployment.ipynb +++ b/09_pytorch_model_deployment.ipynb @@ -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", + "\"Gradio\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)." ] }, {