From b371e1bca68cfc0706268eea977f14e5117e7e63 Mon Sep 17 00:00:00 2001 From: Guillaume Vernade Date: Wed, 29 Jan 2025 10:38:00 +0100 Subject: [PATCH] Fixing last mistakes --- README.md | 1 - ...Search_grounding_for_research_report.ipynb | 2 +- gemini-2/video_understanding.ipynb | 70 +++++++++++++++++++ ...t_started_chat.ipynb => Get_started.ipynb} | 4 +- quickstarts/README.md | 5 -- 5 files changed, 73 insertions(+), 9 deletions(-) create mode 100644 gemini-2/video_understanding.ipynb rename quickstarts/{Get_started_chat.ipynb => Get_started.ipynb} (99%) diff --git a/README.md b/README.md index e2c9c5890..b322e84f0 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,6 @@ We recommend starting with the following:

Then, explore the other Quick Starts to learn about individual features: -* [Chat mode](./quickstarts/Get_started_chat.ipynb): multi-turn conversation * [Grounding](./quickstarts/Search_Grounding.ipynb): use Google Search for grounded responses * [Code execution](./quickstarts/Code_Execution.ipynb): SGenerating and running Python code to solve complex tasks * And [many more](./quickstarts/) diff --git a/examples/Search_grounding_for_research_report.ipynb b/examples/Search_grounding_for_research_report.ipynb index 2b52c09e1..7d66343d7 100644 --- a/examples/Search_grounding_for_research_report.ipynb +++ b/examples/Search_grounding_for_research_report.ipynb @@ -191,7 +191,7 @@ }, "outputs": [], "source": [ - "MODEL_ID = \"gemini-2.0-flash\" # @param [\"gemini-1.5-flash-8b\",\"gemini-1.5-flash-latest\",\"gemini-2.0-pro-exp-01-28\",\"gemini-2.0-flash\"] {\"allow-input\":true}" + "MODEL_ID = \"gemini-2.0-flash-exp\" # @param [\"gemini-1.5-flash-8b\",\"gemini-1.5-flash-latest\",\"gemini-2.0-flash-exp\"] {\"allow-input\":true}" ] }, { diff --git a/gemini-2/video_understanding.ipynb b/gemini-2/video_understanding.ipynb new file mode 100644 index 000000000..f64083807 --- /dev/null +++ b/gemini-2/video_understanding.ipynb @@ -0,0 +1,70 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "id": "lb5yiH5h8x3h" + }, + "source": [ + "##### Copyright 2024 Google LLC." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "cellView": "form", + "id": "906e07f6e562" + }, + "outputs": [], + "source": [ + "#@title Licensed under the Apache License, Version 2.0 (the \"License\");\n", + "# you may not use this file except in compliance with the License.\n", + "# You may obtain a copy of the License at\n", + "#\n", + "# https://www.apache.org/licenses/LICENSE-2.0\n", + "#\n", + "# Unless required by applicable law or agreed to in writing, software\n", + "# distributed under the License is distributed on an \"AS IS\" BASIS,\n", + "# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n", + "# See the License for the specific language governing permissions and\n", + "# limitations under the License." + ] + }, + { + "cell_type": "markdown", + "metadata": { + "id": "WMGdicu8PVD9" + }, + "source": [ + "# Video understanding with Gemini 2.0" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "id": "0c78a2290cc9" + }, + "source": [ + "### This notebook has been moved in the [quickstarts](../quickstarts/Video_understanding.ipynb) section where you can find all the guides and tutorials to get to know the Gemini capabilities." + ] + } + ], + "metadata": { + "colab": { + "name": "spatial_understanding.ipynb", + "toc_visible": true + }, + "kernelspec": { + "display_name": ".venv", + "language": "python", + "name": "python3" + }, + "language_info": { + "name": "python", + "version": "3.11.2" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/quickstarts/Get_started_chat.ipynb b/quickstarts/Get_started.ipynb similarity index 99% rename from quickstarts/Get_started_chat.ipynb rename to quickstarts/Get_started.ipynb index 9af0546b7..1544bfd3e 100644 --- a/quickstarts/Get_started_chat.ipynb +++ b/quickstarts/Get_started.ipynb @@ -39,11 +39,11 @@ "id": "eVmFDcYOSNiV" }, "source": [ - "# Gemini API: Getting started with Gemini 2.0 Chat mode\n", + "# Gemini API: Getting started with Gemini 2.0\n", "\n", "\n", " \n", "
\n", - " Run in Google Colab\n", + " Run in Google Colab\n", "
\n" ] diff --git a/quickstarts/README.md b/quickstarts/README.md index 813c3d047..5bf4b24bd 100644 --- a/quickstarts/README.md +++ b/quickstarts/README.md @@ -17,11 +17,6 @@ Then learn about how to **get started** with the other models that you can use w * More to come very soon...

-There are multiples way to call the models using the Gemini API, these other **get started** guides will then show you the other ways to call the model: -* [Get Started with Chat mode](./Get_started_chat.ipynb): Learn how to use the Gemini API in chat mode so that it remembers the whole discussion. -* More to come... -

- Finally, these guides will deep-dive into specific capabilities of the Gemini models and API: * [Grounding](./Search_Grounding.ipynb): Learn how to use Google Search to ground your answers with external sources. * [Spatial understanding](./Spatial_understanding.ipynb): Learn how to use Gemini's spatial understanding capabilities to detect what's in your images, and reason about them