API réception alertes chute (SmartEye/YOLO), analyse IA (Gemini 2.5 Flash), gestion alertes avec escalade (watchdog), notifications Firebase, dashboard web, documentation MkDocs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
622 B
Python
17 lines
622 B
Python
import google.generativeai as genai
|
|
import os
|
|
|
|
# Configure ta clé API ici (remplace par la vraie !)
|
|
os.environ["GOOGLE_API_KEY"] = "AIzaSyC5wIc9nrhtbVesHqodil6V6-WIxkJFSHA"
|
|
genai.configure(api_key=os.environ["GOOGLE_API_KEY"])
|
|
|
|
print("--- DEBUT DU TEST ---")
|
|
try:
|
|
print("Interrogation de Google...")
|
|
for m in genai.list_models():
|
|
# On cherche uniquement les modèles qui voient (vision)
|
|
if 'vision' in m.name or 'gemini-1.5' in m.name or 'pro' in m.name:
|
|
print(f"✅ MODÈLE DISPO : {m.name}")
|
|
except Exception as e:
|
|
print(f"❌ ERREUR CRITIQUE : {e}")
|
|
print("--- FIN DU TEST ---") |