diff options
| author | Pjotr Prins | 2026-04-05 18:02:01 +0200 |
|---|---|---|
| committer | Pjotr Prins | 2026-04-05 18:02:01 +0200 |
| commit | ddfb74eb61d4200d777d5335b0828ac86d1c6580 (patch) | |
| tree | bf216e6c2829f07ca81f21a2be9a3cfdd8ef1d91 | |
| parent | bbeb25ba4c25151f841f937bfbe0c4c0cd77f8c4 (diff) | |
| download | genecup-ddfb74eb61d4200d777d5335b0828ac86d1c6580.tar.gz | |
Get rid of outdated error
| -rwxr-xr-x | server.py | 9 |
1 files changed, 1 insertions, 8 deletions
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 = {} |
