Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -114,7 +114,7 @@ def solve():
|
|
114 |
mode = 'starting'
|
115 |
try:
|
116 |
response = client.models.generate_content_stream(
|
117 |
-
model="gemini-2.5-flash-preview-
|
118 |
contents=[
|
119 |
{'inline_data': {'mime_type': 'image/png', 'data': img_str}},
|
120 |
"""Résous ça en français with rendering latex. utilise Python pour les calculs et les figures ( Then save the plot as an image file and display the image,
|
@@ -185,15 +185,13 @@ def solved():
|
|
185 |
mode = 'starting'
|
186 |
try:
|
187 |
response = client.models.generate_content_stream(
|
188 |
-
model="gemini-2.5-flash-preview-
|
189 |
contents=[
|
190 |
{'inline_data': {'mime_type': 'image/png', 'data': img_str}},
|
191 |
"""Résous ça en français with rendering latex. utilise python pour les calculs et figures.( "Then save the plot as an image file and display the image.)"""
|
192 |
],
|
193 |
config=types.GenerateContentConfig(
|
194 |
-
|
195 |
-
thinking_budget=16000
|
196 |
-
),
|
197 |
# Ajouter l'outil d'exécution de code
|
198 |
tools=[types.Tool(
|
199 |
code_execution=types.ToolCodeExecution
|
|
|
114 |
mode = 'starting'
|
115 |
try:
|
116 |
response = client.models.generate_content_stream(
|
117 |
+
model="gemini-2.5-flash-preview-05-20",
|
118 |
contents=[
|
119 |
{'inline_data': {'mime_type': 'image/png', 'data': img_str}},
|
120 |
"""Résous ça en français with rendering latex. utilise Python pour les calculs et les figures ( Then save the plot as an image file and display the image,
|
|
|
185 |
mode = 'starting'
|
186 |
try:
|
187 |
response = client.models.generate_content_stream(
|
188 |
+
model="gemini-2.5-flash-preview-05-20",
|
189 |
contents=[
|
190 |
{'inline_data': {'mime_type': 'image/png', 'data': img_str}},
|
191 |
"""Résous ça en français with rendering latex. utilise python pour les calculs et figures.( "Then save the plot as an image file and display the image.)"""
|
192 |
],
|
193 |
config=types.GenerateContentConfig(
|
194 |
+
|
|
|
|
|
195 |
# Ajouter l'outil d'exécution de code
|
196 |
tools=[types.Tool(
|
197 |
code_execution=types.ToolCodeExecution
|