Skip to content

Commit

Permalink
Fixing issue #362 by adding a prompt (#364)
Browse files Browse the repository at this point in the history
* Adding a prompt.
  • Loading branch information
Giom-V authored Dec 18, 2024
1 parent df002f0 commit 2539263
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/Analyze_a_Video_Classification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
]
},
Expand All @@ -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."
]
},
{
Expand Down

0 comments on commit 2539263

Please sign in to comment.