Docfile commited on
Commit
482956a
·
verified ·
1 Parent(s): 38d7bee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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-1.5-flash-exp", safety_settings=safety_settings, generation_config=generation_config)
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