From e2badff7baaa38d151409f1c9f49b4d8579f92ea Mon Sep 17 00:00:00 2001 From: Michael Chen Date: Tue, 14 May 2024 10:50:23 -0400 Subject: [PATCH 1/2] Update prompting_with_media.ipynb Update some text --- site/en/gemini-api/docs/prompting_with_media.ipynb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/site/en/gemini-api/docs/prompting_with_media.ipynb b/site/en/gemini-api/docs/prompting_with_media.ipynb index b1f15fa25..40607d74a 100644 --- a/site/en/gemini-api/docs/prompting_with_media.ipynb +++ b/site/en/gemini-api/docs/prompting_with_media.ipynb @@ -522,7 +522,8 @@ " - video/wmv\n", " - video/3gpp\n", "\n", - "- The File API service currently samples videos into images at 1 frame per second (FPS) and may be subject to change to provide the best inference quality. Individual images take up 258 tokens **regardless** of resolution and quality.\n", + "- The File API service currently samples videos into images at 1 frame per second (FPS) and may be subject to change to provide the best inference quality.\n" + "- Video limits depend on the context size limit of the model used for inference. For example, `gemini-1.5-pro` has a maximum video length of ~60 minutes.\n", "\n", "### Plain text formats\n", "\n", @@ -572,8 +573,8 @@ }, "outputs": [], "source": [ - "my_filename = \"gemini_logo.png\" # @param {type:\"string\"}\n", - "my_file_display_name = \"Gemini Logo\" # @param {type:\"string\"}\n", + "my_filename = \"image.jpg\" # @param {type:\"string\"}\n", + "my_file_display_name = \"Sample Image\" # @param {type:\"string\"}\n", "\n", "my_file = genai.upload_file(path=my_filename,\n", " display_name=my_file_display_name)\n", From 29495470f4651579d9257e934ef6c8eb60b3a520 Mon Sep 17 00:00:00 2001 From: Michael Chen Date: Tue, 14 May 2024 10:53:21 -0400 Subject: [PATCH 2/2] Update prompting_with_media.ipynb fix typo --- site/en/gemini-api/docs/prompting_with_media.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/en/gemini-api/docs/prompting_with_media.ipynb b/site/en/gemini-api/docs/prompting_with_media.ipynb index 40607d74a..f53493392 100644 --- a/site/en/gemini-api/docs/prompting_with_media.ipynb +++ b/site/en/gemini-api/docs/prompting_with_media.ipynb @@ -522,7 +522,7 @@ " - video/wmv\n", " - video/3gpp\n", "\n", - "- The File API service currently samples videos into images at 1 frame per second (FPS) and may be subject to change to provide the best inference quality.\n" + "- The File API service currently samples videos into images at 1 frame per second (FPS) and may be subject to change to provide the best inference quality.\n", "- Video limits depend on the context size limit of the model used for inference. For example, `gemini-1.5-pro` has a maximum video length of ~60 minutes.\n", "\n", "### Plain text formats\n",