From bb42f100c01e3b8a485cb10a6d63f626af69f010 Mon Sep 17 00:00:00 2001 From: Lamiya1234 <154466460+Lamiya1234@users.noreply.github.com> Date: Wed, 3 Jan 2024 04:14:04 +0600 Subject: [PATCH] Create Update Update 13.0 --- Update | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Update diff --git a/Update b/Update new file mode 100644 index 0000000..03bc585 --- /dev/null +++ b/Update @@ -0,0 +1,14 @@ +model = genai.GenerativeModel(model_name='gemini-pro-vision') +response = model.generate_content( + ['Do these look store-bought or homemade?', img], + safety_settings=[ + { + "category": "HARM_CATEGORY_HARASSMENT", + "threshold": "BLOCK_LOW_AND_ABOVE", + }, + { + "category": "HARM_CATEGORY_HATE_SPEECH", + "threshold": "BLOCK_LOW_AND_ABOVE", + }, + ] + )