Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ question d'ouverture
|
|
76 |
|
77 |
"""
|
78 |
|
79 |
-
model = genai.GenerativeModel('gemini-exp
|
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
|
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,
|