about summary refs log tree commit diff
path: root/server.py
diff options
context:
space:
mode:
authorPjotr Prins2026-03-29 09:14:53 +0200
committerPjotr Prins2026-03-29 09:14:53 +0200
commitbb04a7849324ea8c58452632ffa01711dd3ce9b5 (patch)
treec67c9c00a2cb6d2bd7564f6b4bb0543c115f2660 /server.py
parent4cf5a89846c70b5ed3acb35da76971df1e5e47f7 (diff)
downloadgenecup-bb04a7849324ea8c58452632ffa01711dd3ce9b5.tar.gz
All three Gemini API calls now print the response to the console
Diffstat (limited to 'server.py')
-rwxr-xr-xserver.py3
1 files changed, 3 insertions, 0 deletions
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.