Skip to content

Commit

Permalink
add disclaimer
Browse files Browse the repository at this point in the history
  • Loading branch information
lingyielia committed Aug 13, 2024
1 parent 8b44327 commit c3f0b10
Showing 1 changed file with 28 additions and 7 deletions.
35 changes: 28 additions & 7 deletions vizro-ai/examples/chart_by_vizro_ai.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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)"
]
Expand All @@ -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",
Expand All @@ -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()"
]
}
Expand Down Expand Up @@ -194,4 +215,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}

0 comments on commit c3f0b10

Please sign in to comment.