From 34aff32698713b10019416862ced4141be9a61f8 Mon Sep 17 00:00:00 2001 From: thepetk Date: Sun, 13 Oct 2024 12:35:53 +0100 Subject: [PATCH] Update samples Singed-off-by: thepetk --- audio-to-text/Containerfile | 2 +- chatbot/Containerfile | 2 +- chatbot/chatbot_ui.py | 2 +- codegen/Containerfile | 2 +- codegen/codegen-app.py | 2 +- object-detection/Containerfile | 2 +- rag/Containerfile | 2 +- rag/requirements.txt | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/audio-to-text/Containerfile b/audio-to-text/Containerfile index 436a3f3..701aead 100644 --- a/audio-to-text/Containerfile +++ b/audio-to-text/Containerfile @@ -1,4 +1,4 @@ -FROM registry.access.redhat.com/ubi9/python-311:1-77.1725907703 +FROM registry.access.redhat.com/ubi9/python-311:1-77.1726664316 WORKDIR /locallm COPY requirements.txt /locallm/requirements.txt RUN pip install --upgrade pip && \ diff --git a/chatbot/Containerfile b/chatbot/Containerfile index 64a0de4..c87ed47 100644 --- a/chatbot/Containerfile +++ b/chatbot/Containerfile @@ -1,4 +1,4 @@ -FROM registry.access.redhat.com/ubi9/python-311:1-77.1725907703 +FROM registry.access.redhat.com/ubi9/python-311:1-77.1726664316 WORKDIR /chat COPY requirements.txt . RUN pip install --upgrade pip diff --git a/chatbot/chatbot_ui.py b/chatbot/chatbot_ui.py index 0c233cc..40f52b0 100644 --- a/chatbot/chatbot_ui.py +++ b/chatbot/chatbot_ui.py @@ -80,7 +80,7 @@ def memory(): options=models) llm = ChatOpenAI(base_url=model_service, - api_key="sk-no-key-required", + api_key="sk-no-key-required" if model_service_bearer is None else model_service_bearer, model=model_name, streaming=True, callbacks=[StreamlitCallbackHandler(st.empty(), diff --git a/codegen/Containerfile b/codegen/Containerfile index e947454..f57c27f 100644 --- a/codegen/Containerfile +++ b/codegen/Containerfile @@ -1,4 +1,4 @@ -FROM registry.access.redhat.com/ubi9/python-311:1-77.1725907703 +FROM registry.access.redhat.com/ubi9/python-311:1-77.1726664316 WORKDIR /codegen COPY requirements.txt . RUN pip install --upgrade pip diff --git a/codegen/codegen-app.py b/codegen/codegen-app.py index f1c02d2..b821edf 100644 --- a/codegen/codegen-app.py +++ b/codegen/codegen-app.py @@ -47,7 +47,7 @@ def checking_model_service(): llm = ChatOpenAI(base_url=model_service, model=model_name, - api_key="EMPTY", + api_key="EMPTY" if model_service_bearer is None else model_service_bearer, streaming=True) # Define the Langchain chain diff --git a/object-detection/Containerfile b/object-detection/Containerfile index f4b3e4e..7b42097 100644 --- a/object-detection/Containerfile +++ b/object-detection/Containerfile @@ -1,4 +1,4 @@ -FROM registry.access.redhat.com/ubi9/python-311:1-77.1725907703 +FROM registry.access.redhat.com/ubi9/python-311:1-77.1726664316 WORKDIR /locallm COPY requirements.txt /locallm/requirements.txt RUN pip install --upgrade pip && \ diff --git a/rag/Containerfile b/rag/Containerfile index 5e9d079..593ca9f 100644 --- a/rag/Containerfile +++ b/rag/Containerfile @@ -1,4 +1,4 @@ -FROM registry.access.redhat.com/ubi9/python-311:1-77.1725907703 +FROM registry.access.redhat.com/ubi9/python-311:1-77.1726664316 ### Update sqlite for chroma USER root RUN dnf remove sqlite3 -y diff --git a/rag/requirements.txt b/rag/requirements.txt index 5878309..e1a2865 100644 --- a/rag/requirements.txt +++ b/rag/requirements.txt @@ -1,6 +1,6 @@ langchain-openai==0.1.7 langchain==0.1.20 -chromadb==0.5.7 +chromadb==0.5.13 sentence-transformers==2.7.0 streamlit==1.34.0 pypdf==4.2.0