"""Video understanding with Files API upload."""
from google import genai

def main() -> None:
    client = genai.Client()
    myfile = client.files.upload(file="sample.mp4")

    resp = client.models.generate_content(
        model="gemini-3-flash-preview",
        contents=[myfile, "Summarize this video. Provide timestamps for key events."],
    )
    print(resp.text)

if __name__ == "__main__":
    main()
