Skip to content

Update prompting_with_media.ipynb #417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 14, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions site/en/gemini-api/docs/prompting_with_media.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
Loading