From 992bdc78601183a71a240ccae8bd8c701d201266 Mon Sep 17 00:00:00 2001 From: John Nduli Date: Thu, 31 Oct 2024 16:50:30 +0300 Subject: fix: correct use of AI_SEARCH_ENABLED flag --- gn2/wqflask/templates/gsearch_gene.html | 25 +++++++++++++------------ gn2/wqflask/views.py | 9 ++++++--- 2 files changed, 19 insertions(+), 15 deletions(-) (limited to 'gn2') diff --git a/gn2/wqflask/templates/gsearch_gene.html b/gn2/wqflask/templates/gsearch_gene.html index 33d12cfc..35c39a3c 100644 --- a/gn2/wqflask/templates/gsearch_gene.html +++ b/gn2/wqflask/templates/gsearch_gene.html @@ -15,19 +15,20 @@ - - {% if do_ai_search %} -
-
- + {% if ai_search_enabled %} + {% if do_ai_search %} +
+
+ +
-
- {% else %} -
-
-
Please login to view LLM summary context
+ {% else %} +
+
+
Please login to view AI generated summary
+
-
+ {% endif %} {% endif %}

To study a record, click on its Record ID below.
Check records below and click Add button to add to selection.

@@ -283,7 +284,7 @@ }); - {% if do_ai_search %} + {% if ai_search_enabled and do_ai_search %}