diff --git a/.streamlit/config.yaml b/.streamlit/config.yaml index 7a3191a..7ead432 100644 --- a/.streamlit/config.yaml +++ b/.streamlit/config.yaml @@ -28,7 +28,13 @@ credentials: logged_in: false name: Sameer Kulkarni password: $2b$12$iWlVOac3uujRvTrXDi6wructXftKmo/GyQd6SMu5FmyX306kH.yFO - skulk4: + skulk14: + email: sameertest@gmail.com + failed_login_attempts: 0 + logged_in: false + name: Sameer Kulkarni + password: $2b$12$iWlVOac3uujRvTrXDi6wructXftKmo/GyQd6SMu5FmyX306kH.yFO + skulk12: email: sameertest@gmail.com failed_login_attempts: 0 logged_in: false diff --git a/Dockerfile b/Dockerfile index 615319c..9f812a3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ WORKDIR /app COPY .streamlit/** /app/.streamlit/ COPY templates/** /app/templates/ +COPY tools/** /app/tools/ COPY app.py multi_tenant_rag.py requirements.txt tei_rerank.py /app/ RUN pip install --upgrade pip diff --git a/k8s-manifests/configmap.yaml b/k8s-manifests/configmap.yaml index ea7852e..fe84d92 100644 --- a/k8s-manifests/configmap.yaml +++ b/k8s-manifests/configmap.yaml @@ -31,12 +31,24 @@ data: logged_in: false name: Sameer Kulkarni password: $2b$12$iWlVOac3uujRvTrXDi6wructXftKmo/GyQd6SMu5FmyX306kH.yFO + skulk13: + email: sameertest@gmail.com + failed_login_attempts: 0 + logged_in: false + name: Sameer Kulkarni + password: $2b$12$iWlVOac3uujRvTrXDi6wructXftKmo/GyQd6SMu5FmyX306kH.yFO skulk4: email: sameertest@gmail.com failed_login_attempts: 0 logged_in: false name: Sameer Kulkarni password: $2b$12$iWlVOac3uujRvTrXDi6wructXftKmo/GyQd6SMu5FmyX306kH.yFO + skulk14: + email: sameertest@gmail.com + failed_login_attempts: 0 + logged_in: false + name: Sameer Kulkarni + password: $2b$12$iWlVOac3uujRvTrXDi6wructXftKmo/GyQd6SMu5FmyX306kH.yFO amanj: email: amantest@gmail.com failed_login_attempts: 0 diff --git a/k8s-manifests/deploy.yaml b/k8s-manifests/deploy.yaml index c0ae751..8a6950c 100644 --- a/k8s-manifests/deploy.yaml +++ b/k8s-manifests/deploy.yaml @@ -63,7 +63,7 @@ spec: mountPath: /opt/auth-config dnsPolicy: ClusterFirst nodeSelector: - kubernetes.io/hostname: infracloud02 + kubernetes.io/hostname: infracloud02 restartPolicy: Always schedulerName: default-scheduler securityContext: {} diff --git a/k8s-manifests/env.yaml b/k8s-manifests/env.yaml index 6eeaf5a..5498e55 100644 --- a/k8s-manifests/env.yaml +++ b/k8s-manifests/env.yaml @@ -18,4 +18,4 @@ data: USE_PORTKEY: "0" USE_RERANKER: "1" AUTH_CONFIG_FILE_PATH: "/opt/auth-config/config.yaml" - STREAMLIT_CLIENT_SHOW_ERROR_DETAILS: False + STREAMLIT_CLIENT_SHOW_ERROR_DETAILS: "False" diff --git a/multi_tenant_rag.py b/multi_tenant_rag.py index 68dcaa4..adbece4 100644 --- a/multi_tenant_rag.py +++ b/multi_tenant_rag.py @@ -197,5 +197,6 @@ def main(): authenticator = authenticate("login") if st.session_state["authentication_status"]: st.sidebar.text(f"Welcome {st.session_state['username']}") + st._main.header(f"Insightful by InfraCloud Technologies: Policy Chatbot Assistant") authenticator.logout(location="sidebar") main()