Docfile commited on
Commit
b22bf3b
·
verified ·
1 Parent(s): 50f7df4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -76,7 +76,7 @@ question d'ouverture
76
 
77
  """
78
 
79
- model = genai.GenerativeModel('gemini-exp-1206', generation_config=generation_config, safety_settings=safety_settings)
80
  response = model.generate_content(prompt, request_options={"timeout": 600})
81
  return response.text
82
 
@@ -145,7 +145,7 @@ def submit_geographie():
145
  def analyze_images(images, prompt):
146
  """Analyse les images fournies et génère une réponse textuelle."""
147
 
148
- model = genai.GenerativeModel('gemini-exp-1206')
149
  response = model.generate_content(
150
  [prompt, *images],
151
  generation_config=generation_config,
 
76
 
77
  """
78
 
79
+ model = genai.GenerativeModel('gemini-2.0-flash-exp', generation_config=generation_config, safety_settings=safety_settings)
80
  response = model.generate_content(prompt, request_options={"timeout": 600})
81
  return response.text
82
 
 
145
  def analyze_images(images, prompt):
146
  """Analyse les images fournies et génère une réponse textuelle."""
147
 
148
+ model = genai.GenerativeModel('gemini-2.0-flash-exp')
149
  response = model.generate_content(
150
  [prompt, *images],
151
  generation_config=generation_config,