From 50ad7c4e7d1dcb31a538c4d5b3fde2ba2c66d0c9 Mon Sep 17 00:00:00 2001 From: Charlie Date: Wed, 28 Jan 2026 13:24:48 -0500 Subject: [PATCH 1/3] Add diagnostics for species tree rendering --- app/nl_query.py | 4 ++- app/templates/show_species.html | 48 ++++++++++++++++++++++++++------- 2 files changed, 41 insertions(+), 11 deletions(-) diff --git a/app/nl_query.py b/app/nl_query.py index 606e381..2b3b9fe 100644 --- a/app/nl_query.py +++ b/app/nl_query.py @@ -53,7 +53,8 @@ class State(TypedDict): ] ) -GENERATE_QUERY_PROMPT = lambda user_input: f""" +GENERATE_QUERY_PROMPT = ( + lambda user_input: f""" ``` SYSTEM Given an input question, create a syntactically correct SQLite3 query to run to help find the answer. Unless the user specifies in his question a specific number of examples they wish to obtain, you can return all the results that match the question. @@ -69,6 +70,7 @@ class State(TypedDict): {user_input} ``` """ +) llm = ChatOpenAI( model="gpt-4o", diff --git a/app/templates/show_species.html b/app/templates/show_species.html index 308a1c0..f607ec5 100644 --- a/app/templates/show_species.html +++ b/app/templates/show_species.html @@ -36,22 +36,50 @@

Tree

Unable to read treefile: {{ tree_error }}

{% elif tree_content %}

Source: {{ tree_path.rsplit('/', 1)[-1] }}

+
+ Loading tree… +
{% elif tree_root %}

No treefile found for this species.

From a3ae3a9f9c737b849b063fb588ab1d60a3be6e26 Mon Sep 17 00:00:00 2001 From: Charlie Date: Wed, 28 Jan 2026 14:19:15 -0500 Subject: [PATCH 2/3] Simplify species tree demo rendering --- app/templates/show_species.html | 49 ++++++--------------------------- 1 file changed, 9 insertions(+), 40 deletions(-) diff --git a/app/templates/show_species.html b/app/templates/show_species.html index f607ec5..12c5843 100644 --- a/app/templates/show_species.html +++ b/app/templates/show_species.html @@ -36,50 +36,19 @@

Tree

Unable to read treefile: {{ tree_error }}

{% elif tree_content %}

Source: {{ tree_path.rsplit('/', 1)[-1] }}

-
- Loading tree… -
- - {% elif tree_root %}

No treefile found for this species.

From 6f02ce8f7986462bc3c54dd3ff1e66dd0bed389f Mon Sep 17 00:00:00 2001 From: Charlie Date: Sat, 31 Jan 2026 10:58:06 -0500 Subject: [PATCH 3/3] Ensure minimal tree demo renders --- app/templates/show_species.html | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/app/templates/show_species.html b/app/templates/show_species.html index 12c5843..20afff7 100644 --- a/app/templates/show_species.html +++ b/app/templates/show_species.html @@ -36,18 +36,26 @@

Tree

Unable to read treefile: {{ tree_error }}

{% elif tree_content %}

Source: {{ tree_path.rsplit('/', 1)[-1] }}

-
- +
+ + {% elif tree_root %}