From ddfb74eb61d4200d777d5335b0828ac86d1c6580 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sun, 5 Apr 2026 18:02:01 +0200 Subject: Get rid of outdated error --- server.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'server.py') diff --git a/server.py b/server.py index 9ce2786..c81cbc9 100755 --- a/server.py +++ b/server.py @@ -140,14 +140,7 @@ else: print(f"Error initializing Gemini API client: {e}") GEMINI_API_KEY = None -STRESS_PROMPT_TEMPLATE = "" -try: - with open("stress_prompt.txt", "r") as f_prompt: - STRESS_PROMPT_TEMPLATE = f_prompt.read() -except FileNotFoundError: - print("FATAL ERROR: stress_prompt.txt not found. Stress classification will fail.") -except Exception as e: - print(f"FATAL ERROR: Could not read stress_prompt.txt: {e}") +STRESS_PROMPT_TEMPLATE = "" # unused: batch classifier builds its own prompt # In-memory cache for Gemini stress classification: hash(sentence) -> result _gemini_cache = {} -- cgit 1.4.1