Skip to main content
The source passes a Google uploaded File object to Video.content, which accepts bytes in Agno v2.7.4. Use the local file path directly before running.
video_input_file_upload.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your Google API key

4

Use the local video directly

Remove the UploadFileConfig import and the remote file lookup and upload block. Replace Video(content=video_file) with Video(filepath=video_path).
5

Download the sample video

Download the video expected by the saved script:
6

Run the example

Save the code above as video_input_file_upload.py, then run:
Full source: cookbook/90_models/google/gemini/video_input_file_upload.py