From 7c127e5eea986dc81b900b9f6f40f887bc49054d Mon Sep 17 00:00:00 2001 From: John Nduli Date: Mon, 2 Sep 2024 20:22:57 +0300 Subject: refactor: align search llm tooltip to be vertical --- gn2/wqflask/templates/gsearch_gene.html | 35 +++++++++++++++++---------------- gn2/wqflask/views.py | 2 +- 2 files changed, 19 insertions(+), 18 deletions(-) (limited to 'gn2/wqflask') diff --git a/gn2/wqflask/templates/gsearch_gene.html b/gn2/wqflask/templates/gsearch_gene.html index c32f1ee1..f75c4e8b 100644 --- a/gn2/wqflask/templates/gsearch_gene.html +++ b/gn2/wqflask/templates/gsearch_gene.html @@ -10,26 +10,27 @@
-
-
-

GN searched for the term(s) "{{ terms }}" in 754 datasets and 39,765,944 traits across 10 species
- and found {{ trait_count }} results that match your query.
- You can filter these results by adding key words in the fields below
- and you can also sort results on most columns.

-

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

-
- {% if ai_result %} -
-
-
AI Search: {{ ai_result["search_term"] }}
-
-

{{ ai_result["search_result"] }}

-

See References

-
+
+

GN searched for the term(s) "{{ terms }}" in 754 datasets and 39,765,944 traits across 10 species
+ and found {{ trait_count }} results that match your query.
+

+
+ + {% if ai_result %} +
+
+
+
AI Search: {{ ai_result["search_term"] }}
+
+

{{ ai_result["search_result"] }}

+

See References

- {% endif %}
+
+ {% endif %} + +

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


diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py index 2383e455..6cc4f2a7 100644 --- a/gn2/wqflask/views.py +++ b/gn2/wqflask/views.py @@ -246,7 +246,7 @@ def gsearchact(): ai_result = None if current_app.config.get("AI_SEARCH_ENABLED"): ai_result = { - "search_term": "which animal has the same number of chromosomes as human", + "search_term": "glioma human gtex_v8", "search_result": "The Bama miniature pig has the same number of chromosomes as humans", # we need to modify the search to use url params so that we can easily link "search_url": "https://qa.genenetwork.org/gnqna" -- cgit v1.2.3