From b8c33988550ab0e26e5aaef18af95cd1798b3f7b Mon Sep 17 00:00:00 2001 From: Vincent Emonet Date: Fri, 17 Jan 2025 13:36:58 +0100 Subject: [PATCH] fix deployment --- Dockerfile | 2 +- chat-with-context/demo/index.html | 11 +++-- chat-with-context/index.html | 10 +++-- chat-with-context/package.json | 4 -- chat-with-context/src/chat-with-context.tsx | 5 ++- chat-with-context/src/providers.ts | 44 ++++++------------- chat-with-context/src/utils.tsx | 20 +++++---- compose.dev.yml | 6 +-- compose.yml | 8 ++-- packages/expasy-agent/src/expasy_agent/api.py | 6 +-- .../expasy-agent/src/expasy_agent/config.py | 7 ++- .../expasy_agent/indexing/index_wikidata.py | 1 + 12 files changed, 55 insertions(+), 69 deletions(-) create mode 100644 packages/expasy-agent/src/expasy_agent/indexing/index_wikidata.py diff --git a/Dockerfile b/Dockerfile index d5b1de8..ed953f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,5 +21,5 @@ RUN pip install -e ".[cpu]" "../sparql-llm" # https://github.com/tiangolo/uvicorn-gunicorn-docker/blob/master/docker-images/gunicorn_conf.py -CMD ["uvicorn", "src.expasy_agent.api:app", "--host", "0.0.0.0", "--port", "80", "--workers", "8"] +CMD ["uvicorn", "src.expasy_agent.api:app", "--host", "0.0.0.0", "--port", "80", "--workers", "6"] # CMD ["uvicorn", "src.expasy_agent.api", "--host", "0.0.0.0", "--port", "80", "--workers", "4", "--http", "h11"] diff --git a/chat-with-context/demo/index.html b/chat-with-context/demo/index.html index a4f7165..0cfb0fc 100644 --- a/chat-with-context/demo/index.html +++ b/chat-with-context/demo/index.html @@ -13,6 +13,7 @@ + @@ -49,18 +50,20 @@

- ExpasyGPT is reshaping how researchers explore life science data, streamlining searches across - the SIB Swiss Institute of Bioinformatics’ databases (learn more + ExpasyGPT is reshaping how researchers explore life science data, streamlining searches + across the SIB Swiss Institute of Bioinformatics’ databases (learn more here). This AI-driven tool is powered by metadata and example queries from SPARQL endpoints like:

-