Update app.py
Browse files
app.py
CHANGED
@@ -124,7 +124,7 @@ def analyze_image():
|
|
124 |
cv2.imwrite(output_filename, image)
|
125 |
|
126 |
# Générer la description
|
127 |
-
model = genai.GenerativeModel("gemini-
|
128 |
response = model.generate_content([DESCRIPTION_PROMPT, image_part])
|
129 |
description = response.text
|
130 |
|
|
|
124 |
cv2.imwrite(output_filename, image)
|
125 |
|
126 |
# Générer la description
|
127 |
+
model = genai.GenerativeModel("gemini-2.0-flash-exp", safety_settings=safety_settings, generation_config=generation_config)
|
128 |
response = model.generate_content([DESCRIPTION_PROMPT, image_part])
|
129 |
description = response.text
|
130 |
|