From bbeb25ba4c25151f841f937bfbe0c4c0cd77f8c4 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sun, 5 Apr 2026 17:59:29 +0200 Subject: Use template to show intermediate phase --- server.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'server.py') diff --git a/server.py b/server.py index eea6487..9ce2786 100755 --- a/server.py +++ b/server.py @@ -1516,15 +1516,9 @@ def sentences(): # Show loading page if not cached and not yet asked to classify if batch_cache_key not in _gemini_cache and not request.args.get('classify'): loading_url = request.url + ('&' if '?' in request.url else '?') + 'classify=1' - return f''' -
- - - -Classifying {len(all_stress_sentences)} sentences as cellular/organismal stress.
-Please wait, this page will refresh automatically.
-''' + return render_template('call-gemini.html', + url=loading_url, + count=len(all_stress_sentences)) try: batched_prompt = f"""For each sentence below, classify it as describing "Cellular Stress" or "Organismal Stress". -- cgit 1.4.1