Update app.py
Browse files
app.py
CHANGED
@@ -647,16 +647,7 @@ def process_image_background(task_id, image_data):
|
|
647 |
{'inline_data': {'mime_type': 'image/png', 'data': img_base64_str}},
|
648 |
ppmqth
|
649 |
],)
|
650 |
-
|
651 |
-
|
652 |
-
# Ajouter l'outil d'exécution de code
|
653 |
-
# tools=[types.Tool(
|
654 |
-
# code_execution=types.ToolCodeExecution
|
655 |
-
# )]
|
656 |
-
# )
|
657 |
-
# Consider adding generation_config for token limits, temperature if needed
|
658 |
-
# generation_config=genai.types.GenerationConfig(max_output_tokens=8192)
|
659 |
-
)
|
660 |
|
661 |
if gemini_response.candidates:
|
662 |
candidate = gemini_response.candidates[0]
|
|
|
647 |
{'inline_data': {'mime_type': 'image/png', 'data': img_base64_str}},
|
648 |
ppmqth
|
649 |
],)
|
650 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
651 |
|
652 |
if gemini_response.candidates:
|
653 |
candidate = gemini_response.candidates[0]
|