From c3f0b105087101aaf2e1dbf46f00ccf6be0ab953 Mon Sep 17 00:00:00 2001 From: Lingyi Zhang Date: Tue, 13 Aug 2024 00:01:45 -0400 Subject: [PATCH] add disclaimer --- vizro-ai/examples/chart_by_vizro_ai.ipynb | 35 ++++++++++++++++++----- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/vizro-ai/examples/chart_by_vizro_ai.ipynb b/vizro-ai/examples/chart_by_vizro_ai.ipynb index cb9c9eb6b..eec5b678f 100644 --- a/vizro-ai/examples/chart_by_vizro_ai.ipynb +++ b/vizro-ai/examples/chart_by_vizro_ai.ipynb @@ -20,6 +20,26 @@ "# Use Vizro-AI to generate Vizro charts" ] }, + { + "cell_type": "markdown", + "source": [ + "#### Disclaimer: Using Google Colab\n", + "Please read carefully before proceeding:\n", + "\n", + "1. Google's Servers: This notebook runs on Google's servers. Your code and data will be processed and temporarily stored on Google's infrastructure.\n", + "2. Data Privacy: Be mindful of the data you upload or process here. Avoid using sensitive, confidential, or personal information that shouldn't be shared with third parties.\n", + "3. Security Considerations: Colab is a shared environment. While Google implements security measures, treat it as a public environment and act accordingly.\n", + "4. Terms of Service: Ensure your usage complies with Google Colab's Terms of Service and Google Cloud's Terms of Service.\n", + "5. Data Persistence: Data in Colab notebooks is not permanently stored. Save important data and results to your local machine or a secure cloud storage.\n", + "6. Resource Limitations: Colab provides free resources, but these are subject to availability and usage limits.\n", + "\n", + "By using this Colab notebook, you acknowledge that you understand and accept these conditions. Please use Colab at your own discretion and responsibility." + ], + "metadata": { + "id": "zNloarZrwORG" + }, + "id": "zNloarZrwORG" + }, { "cell_type": "code", "execution_count": null, @@ -31,7 +51,7 @@ "outputs": [], "source": [ "# @title ## Setup\n", - "#@markdown <-- click the `Run cell` button to\n", + "#@markdown <-- click the `Run cell` button to activate this cell\n", "#@markdown #### 1. Install Vizro-AI\n", "print(\"Installing dependencies\")\n", "!pip install \"orjson<3.10.7\" -q -q -q\n", @@ -87,10 +107,10 @@ "source": [ "# @title ## Set user input\n", "\n", - "#@markdown <-- click the `Run cell` button to\n", + "#@markdown <-- click the `Run cell` button to activate this cell\n", "#@markdown #### 1. Choose the LLM model\n", "\n", - "LLM = 'gpt-3.5-turbo' # @param [\"gpt-4o\", \"gpt-3.5-turbo\", \"gpt-4-turbo\"]\n", + "LLM = 'gpt-3.5-turbo' # @param [\"gpt-4o\", \"gpt-3.5-turbo\", \"gpt-4-turbo\", \"gpt-4o-mini\"]\n", "\n", "# print(f\"Selected LLM: {LLM}\")\n", "\n", @@ -120,7 +140,7 @@ "#@markdown #### 3. Input your chart question\n", "\n", "# @markdown #### Instructions:\n", - "user_input = 'describe the composition of gdp in continent' # @param {type:\"string\", placeholder:\"Enter the requirements for the chart\"}\n", + "user_input = 'Describe the composition of gdp in continent' # @param {type:\"string\", placeholder:\"Enter the requirements for the chart\"}\n", "\n", "# print(user_input)" ] @@ -137,12 +157,13 @@ "source": [ "# @title ## Create the chart using Vizro-AI\n", "\n", - "#@markdown <-- click the `Run cell` button to\n", + "#@markdown <-- click the `Run cell` button to activate this cell\n", "\n", "import ipywidgets as widgets\n", "from IPython.display import display\n", "\n", "def run_code(button):\n", + " print(\"Running VizroAI...\")\n", " from vizro_ai import VizroAI\n", "\n", " vizro_ai = VizroAI()\n", @@ -165,7 +186,7 @@ "outputs": [], "source": [ "# @title ## Show the chart\n", - "#@markdown <-- click the `Run cell` button to\n", + "#@markdown <-- click the `Run cell` button to activate this cell\n", "button1.result.show()" ] } @@ -194,4 +215,4 @@ }, "nbformat": 4, "nbformat_minor": 5 -} +} \ No newline at end of file