From bb04a7849324ea8c58452632ffa01711dd3ce9b5 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sun, 29 Mar 2026 09:14:53 +0200 Subject: All three Gemini API calls now print the response to the console --- server.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server.py') diff --git a/server.py b/server.py index 6db682a..06f109b 100755 --- a/server.py +++ b/server.py @@ -158,6 +158,7 @@ def classify_stress_with_gemini(sentence_text): model='gemini-2.5-pro', contents=prompt_text ) + print(f" Gemini response: {response.text.strip()}") # We need to parse the classification from the response classification = response.text.strip().lower() @@ -194,6 +195,7 @@ Classification:""" model='gemini-2.5-pro', contents=prompt ) + print(f" Gemini response: {response.text.strip()}") classification = response.text.strip().lower() if classification == "systemic": @@ -1621,6 +1623,7 @@ Here are the sentences to classify: model='gemini-3-flash-preview', contents=batched_prompt ) + print(f" Gemini response: {response.text.strip()}") # Step 3: Parse the JSON response # The model might wrap the JSON in ```json ... ```, so we need to clean it. -- cgit 1.4.1