Skip to content

Commit cd88d95

Browse files
Update prompting_with_media.ipynb (#417)
* Update prompting_with_media.ipynb Update some text * Update prompting_with_media.ipynb fix typo
1 parent 3bf1576 commit cd88d95

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

site/en/gemini-api/docs/prompting_with_media.ipynb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,8 @@
522522
" - video/wmv\n",
523523
" - video/3gpp\n",
524524
"\n",
525-
"- 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",
525+
"- 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",
526+
"- 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",
526527
"\n",
527528
"### Plain text formats\n",
528529
"\n",
@@ -572,8 +573,8 @@
572573
},
573574
"outputs": [],
574575
"source": [
575-
"my_filename = \"gemini_logo.png\" # @param {type:\"string\"}\n",
576-
"my_file_display_name = \"Gemini Logo\" # @param {type:\"string\"}\n",
576+
"my_filename = \"image.jpg\" # @param {type:\"string\"}\n",
577+
"my_file_display_name = \"Sample Image\" # @param {type:\"string\"}\n",
577578
"\n",
578579
"my_file = genai.upload_file(path=my_filename,\n",
579580
" display_name=my_file_display_name)\n",

0 commit comments

Comments
 (0)