From 252c35cdf9589a34d4ba25ca1026b9a21ee48985 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Tue, 23 Apr 2024 18:19:05 +0300 Subject: Implementation for gnqa chatbox ui --- gn2/wqflask/templates/gnqa_chat_box.html | 136 +++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 gn2/wqflask/templates/gnqa_chat_box.html (limited to 'gn2') diff --git a/gn2/wqflask/templates/gnqa_chat_box.html b/gn2/wqflask/templates/gnqa_chat_box.html new file mode 100644 index 00000000..a10062cd --- /dev/null +++ b/gn2/wqflask/templates/gnqa_chat_box.html @@ -0,0 +1,136 @@ +
+
+
+
+
+
+

You

+

+ {{ query }} +

+
+
+
+

GNQA

+
+ {{ answer }} +
+
+
+
+

References Metadata related to your query

+ {% if references %} +
    + {% for reference in references %} +
  • +
    +
    + {% if loop.first %} + +
    +
    +

    {{ reference.comboTxt }}

    +
    + {% if reference.pubmed %} +
    +
    + See PubMed Info +
    +

    {{ reference.pubmed[0].get('title') }}:

    +

    Authors:{{ reference.pubmed[0].get('authors') }}

    +

    PMID: {{ reference.pubmed[0].get('pub_id') }}

    +

    Abstract:

    +

    {{ reference.pubmed[0].get('abstract')|safe }}

    +

    Click to view full Article on Pubmed

    +
    +
    + {% endif %} +
    +
    + {% else %} + +
    +
    +

    {{reference.comboTxt}}

    +
    + {% if reference.pubmed %} +
    +
    + See PubMed Info +
    +

    {{ reference.pubmed[0].get('title') }}:

    +

    Authors:{{ reference.pubmed[0].get('authors') }}

    +

    PMID: {{ reference.pubmed[0].get('pub_id') }}

    +

    Abstract:

    +

    {{ reference.pubmed[0].get('abstract')|safe }}

    +

    Click to view full Article on Pubmed

    +
    +
    + + {% endif %} +
    +
    +
    + {% endif %} +
    +
    +
  • + {% endfor %} +
+ {% else %} +

No references available.

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

Click links below to view references

+ {% for reference in references %} + {{reference.bibInfo}} +
+ {% endfor %} +
+
+
+ +
-- cgit v1.2.3