-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgemini_fusion.py
More file actions
33 lines (26 loc) · 896 Bytes
/
Copy pathgemini_fusion.py
File metadata and controls
33 lines (26 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import os
from google import genai
# Init Gemini client
client = genai.Client(api_key=os.getenv("AIzaSyA7ukpe_Vs9OVLU1T68tWHL5_hAjauBjEU"))
# === INPUTS FROM YOUR PIPELINE ===
avg_blink_interval_sec = 1.2
blink_variability = 0.5
audio_behavior_score = 99
prompt = f"""
You analyze behavioral timing patterns only.
Do NOT detect lies. Do NOT make judgments.
Inputs:
- Average blink interval (seconds): {avg_blink_interval_sec}
- Blink timing variability: {blink_variability}
- Audio behavioral load score (0–100): {audio_behavior_score}
Task:
Estimate behavioral inconsistency probability (0–100%).
Explain briefly in neutral, non-accusatory language.
"""
# ✅ FULL MODEL PATH (THIS IS THE KEY)
response = client.models.generate_content(
model="models/gemini-1.5-pro-latest",
contents=prompt
)
print("\n=== AI OUTPUT ===")
print(response.text)