From d0114f8700916c56ad0adf4d844554ecc1047261 Mon Sep 17 00:00:00 2001 From: Hossein Date: Mon, 1 Dec 2025 15:07:49 +0330 Subject: [PATCH] update --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 4c9a2a3..1aef84d 100644 --- a/main.py +++ b/main.py @@ -28,7 +28,7 @@ if not GEMINI_API_KEY: raise RuntimeError("GEMINI_API_KEY not set") IMAGE_MODEL = "gemini-2.5-flash-image" -IDENTITY_MODEL = "gemini-1.5-flash" # text/vision model for identity check +IDENTITY_MODEL = "gemini-1.5-pro" # multimodal text+vision model for identity check AUTH_KEY = os.getenv("AIFIT_AUTH_KEY") @@ -86,6 +86,7 @@ def faces_match_strict(original_bytes: bytes, edited_bytes: bytes) -> bool: if identity/face has changed. Returns True if it's clearly the same person, False otherwise. """ + print(f"[DEBUG] Identity check using model: {IDENTITY_MODEL}") try: original_part = Part.from_bytes( data=original_bytes,