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/base.html b/app/templates/base.html index bfb84ee..c5e01f3 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -15,7 +15,11 @@ crossorigin="anonymous" > - + diff --git a/app/templates/show_species.html b/app/templates/show_species.html index 308a1c0..d219aab 100644 --- a/app/templates/show_species.html +++ b/app/templates/show_species.html @@ -2,11 +2,21 @@ {% block head %} + {% endblock %} {% block body %} @@ -37,21 +47,61 @@

Tree

{% elif tree_content %}

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

- - - - + +
+ + + + + + +
+ + + + + + + + {% elif tree_root %}

No treefile found for this species.