Skip to content

Commit

Permalink
include tools directory in container & some config updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameer Kulkarni committed Sep 19, 2024
1 parent 15502c6 commit ad8eb1a
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .streamlit/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ credentials:
logged_in: false
name: Sameer Kulkarni
password: $2b$12$iWlVOac3uujRvTrXDi6wructXftKmo/GyQd6SMu5FmyX306kH.yFO
skulk4:
skulk14:
email: [email protected]
failed_login_attempts: 0
logged_in: false
name: Sameer Kulkarni
password: $2b$12$iWlVOac3uujRvTrXDi6wructXftKmo/GyQd6SMu5FmyX306kH.yFO
skulk12:
email: [email protected]
failed_login_attempts: 0
logged_in: false
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions k8s-manifests/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,24 @@ data:
logged_in: false
name: Sameer Kulkarni
password: $2b$12$iWlVOac3uujRvTrXDi6wructXftKmo/GyQd6SMu5FmyX306kH.yFO
skulk13:
email: [email protected]
failed_login_attempts: 0
logged_in: false
name: Sameer Kulkarni
password: $2b$12$iWlVOac3uujRvTrXDi6wructXftKmo/GyQd6SMu5FmyX306kH.yFO
skulk4:
email: [email protected]
failed_login_attempts: 0
logged_in: false
name: Sameer Kulkarni
password: $2b$12$iWlVOac3uujRvTrXDi6wructXftKmo/GyQd6SMu5FmyX306kH.yFO
skulk14:
email: [email protected]
failed_login_attempts: 0
logged_in: false
name: Sameer Kulkarni
password: $2b$12$iWlVOac3uujRvTrXDi6wructXftKmo/GyQd6SMu5FmyX306kH.yFO
amanj:
email: [email protected]
failed_login_attempts: 0
Expand Down
2 changes: 1 addition & 1 deletion k8s-manifests/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}
Expand Down
2 changes: 1 addition & 1 deletion k8s-manifests/env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
1 change: 1 addition & 0 deletions multi_tenant_rag.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit ad8eb1a

Please sign in to comment.