diff options
| author | Pjotr Prins | 2026-04-06 11:16:54 +0200 |
|---|---|---|
| committer | Pjotr Prins | 2026-04-06 11:16:54 +0200 |
| commit | 1add2e683ac93cb8e63a446332dd66504d4c9e61 (patch) | |
| tree | 7163651a43ed58ec2465617f64e1edc07990e754 | |
| parent | ae4ac90310a55589dbbcb32621b1455367702b9a (diff) | |
| download | genecup-1add2e683ac93cb8e63a446332dd66504d4c9e61.tar.gz | |
Only 3 letter abbreviations
| -rwxr-xr-x | server.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server.py b/server.py index 626179a..79dda7d 100755 --- a/server.py +++ b/server.py @@ -348,6 +348,8 @@ def about(): @app.route("/create-ontology", methods=["GET", "POST"]) def create_ontology(): + if request.method == "GET": + session.pop('namecat', None) from more_functions import gemini_query default_prompt = ( "Give me a list of terms on substance abuse disorder (SUD) that act " @@ -356,7 +358,7 @@ def create_ontology(): "aliases and synonyms as well as gene names. Each term should be " "1-3 words (max). Give me a list of at least 20, but no more than " "80, most used terms. Return only the terms, one per line, no " - "numbering. Add abbreviations and aliases as a list with each term, " + "numbering. Add abbreviations and aliases - each at least 3 letters that have no other meaning - as a list with each term, " "separated by commas") if request.method == "POST": action = request.form.get("action", "generate") |
