From 253926332bfd3b55954d615bd5bbc91703b4fff9 Mon Sep 17 00:00:00 2001 From: Guillaume Vernade Date: Wed, 18 Dec 2024 10:23:55 +0000 Subject: [PATCH] Fixing issue #362 by adding a prompt (#364) * Adding a prompt. --- examples/Analyze_a_Video_Classification.ipynb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/Analyze_a_Video_Classification.ipynb b/examples/Analyze_a_Video_Classification.ipynb index 1487c887b..70d3e34da 100644 --- a/examples/Analyze_a_Video_Classification.ipynb +++ b/examples/Analyze_a_Video_Classification.ipynb @@ -282,7 +282,7 @@ ], "source": [ "model = genai.GenerativeModel(model_name=\"models/gemini-1.5-flash\", system_instruction=system_prompt)\n", - "response = model.generate_content([video_file])\n", + "response = model.generate_content([\"Please identify the animal(s) in this video\",video_file])\n", "print(response.text)" ] }, @@ -292,7 +292,9 @@ "id": "CYLXPx2lq45r" }, "source": [ - "As you can see, the model accurately named the animal and provided a correct Latin name. You can delete the video to prevent unnecessary data storage." + "As you can see, the model accurately named the animal and provided a correct Latin name. \n", + "\n", + "You can delete the video to prevent unnecessary data storage." ] }, {