From 418b906827a8f188d6cfd9ba75ce3537f27853b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0lker=20SI=C4=9EIRCI?= Date: Tue, 11 Feb 2025 10:17:26 +0300 Subject: [PATCH] nav header links added --- configs/chainlit/.chainlit/config.toml | 5 +++++ configs/chainlit/public/custom.css | 4 ++++ docker-compose.yml | 1 + pyproject.toml | 2 +- uv.lock | 8 ++++---- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/configs/chainlit/.chainlit/config.toml b/configs/chainlit/.chainlit/config.toml index ead02e5..77a30c0 100644 --- a/configs/chainlit/.chainlit/config.toml +++ b/configs/chainlit/.chainlit/config.toml @@ -77,5 +77,10 @@ custom_meta_image_url = "https://chainlit-cloud.s3.eu-west-3.amazonaws.com/logo/ # Be careful: If this is a relative path, it should not start with a slash. # custom_build = "./public/build" +[[UI.header_links]] + name = "Github" + icon_url = "https://github.com/favicon.ico" + url = "https://github.com/ilkersigirci/podflix" + [meta] generated_by = "2.0.0" diff --git a/configs/chainlit/public/custom.css b/configs/chainlit/public/custom.css index 951b5fe..459d7b6 100644 --- a/configs/chainlit/public/custom.css +++ b/configs/chainlit/public/custom.css @@ -2,6 +2,10 @@ a[href*='https://github.com/Chainlit/chainlit'] { visibility: hidden; } +#readme-button { + display: none; +} + /* a img[alt="watermark"] { display: none; } diff --git a/docker-compose.yml b/docker-compose.yml index d52c21e..62f4d3d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -252,6 +252,7 @@ services: - DEFAULT_RESPONSE_FORMAT=json # - DEFAULT_RESPONSE_FORMAT=srt # vtt - MAX_MODELS=1 + - TTL=-1 # Never unload the model - WHISPER__MODEL=$WHISPER_MODEL_NAME - WHISPER__COMPUTE_TYPE=default # - WHISPER__COMPUTE_TYPE=bfloat16 diff --git a/pyproject.toml b/pyproject.toml index 1170656..f3a1de8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ dependencies = [ "aiosqlite>=0.20.0", "asyncpg>=0.30.0", "boto3>=1.35.92", - "chainlit>=2.1.2", + "chainlit>=2.2.0", "huggingface-hub>=0.27.0", "langchain>=0.3.13", "langchain-community>=0.3.13", diff --git a/uv.lock b/uv.lock index 2a64a84..5827c6e 100644 --- a/uv.lock +++ b/uv.lock @@ -344,7 +344,7 @@ wheels = [ [[package]] name = "chainlit" -version = "2.1.2" +version = "2.2.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "aiofiles" }, @@ -370,9 +370,9 @@ dependencies = [ { name = "uvicorn" }, { name = "watchfiles" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/ff/a0/75ec9ae5a639997aeac64a587269ce37ff2a128604667a9e77176cb2715b/chainlit-2.1.2.tar.gz", hash = "sha256:ae57831d58c16f3cb27f6dcbda8b843547c52b4272d0bbc16da0ed992a992f26", size = 9472021 } +sdist = { url = "https://files.pythonhosted.org/packages/a8/86/7dc7a0911b9df9f9cf66450f31054416a56d0df4f06924d418e632565a66/chainlit-2.2.0.tar.gz", hash = "sha256:42e40faf146a20eecf5911a9cfed2e54b3513f554dd817f248e9acd7abc0203e", size = 9472876 } wheels = [ - { url = "https://files.pythonhosted.org/packages/49/fb/8ffce2eecd705011c37cc6dbecf86c8c6987f6d8ecfa1a594428bd4e7222/chainlit-2.1.2-py3-none-any.whl", hash = "sha256:471b7295cabad7dfec8f6123eb68dfd95f6cd2dc95a31fc45ddca8afc5131750", size = 9622023 }, + { url = "https://files.pythonhosted.org/packages/cf/65/c1b19903bc7a8bf0395c96943ddb7c4d30f3d8c76d0593ec6e946cde4954/chainlit-2.2.0-py3-none-any.whl", hash = "sha256:f222e25311ce6fdf4ce017d8f2c86547eb89036764eeb6275d368f28a8ce9381", size = 9622958 }, ] [[package]] @@ -1992,7 +1992,7 @@ requires-dist = [ { name = "aiosqlite", specifier = ">=0.20.0" }, { name = "asyncpg", specifier = ">=0.30.0" }, { name = "boto3", specifier = ">=1.35.92" }, - { name = "chainlit", specifier = ">=2.1.2" }, + { name = "chainlit", specifier = ">=2.2.0" }, { name = "huggingface-hub", specifier = ">=0.27.0" }, { name = "langchain", specifier = ">=0.3.13" }, { name = "langchain-community", specifier = ">=0.3.13" },