Hey,
I am trying to analyze videos using gemini-2-flash
but i cannot upload the video to the client
i tried the example in the following cookbook: cookbook/quickstarts/Get_started.ipynb at 54459311ef77b21952bb15130fe33b6e3310a873 · google-gemini/cookbook · GitHub
this is my code:
from google import genai
from google.genai.types import HttpOptions, Part
import os
video_file_name = “BigBuckBunny_320x180.mp4”
client = genai.Client(api_key=os.getenv(‘GEMINI_API_KEY’))
video_file = client.files.upload(file=video_file_name)
i get this error:
httpx.WriteTimeout: The write operation timed out