Skip to content

Commit

Permalink
Authentication implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
AIWithShrey committed Aug 5, 2024
1 parent 1854a14 commit fe7fbf9
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
21 changes: 21 additions & 0 deletions .streamlit/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
cookie:
expiry_days: 30
key: some_signature_key
name: some_cookie_name
credentials:
usernames:
jdoe:
email: [email protected]
failed_login_attempts: 0
logged_in: false
name: John Doe
password: $2b$12$iWlVOac3uujRvTrXDi6wructXftKmo/GyQd6SMu5FmyX306kH.yFO
rbriggs:
email: [email protected]
failed_login_attempts: 0
logged_in: false
name: Rebecca Briggs
password: $2b$12$uNaTgvGPG9rMbzOJHYaPQePw0DUfp1qHBrSq6l4O304qani6pKFpm
pre-authorized:
emails:
- [email protected]
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
st.set_page_config(layout="wide", page_title="InSightful")

def authenticate():
with open('config.yaml') as file:
with open('.streamlit/config.yaml') as file:
config = yaml.load(file, Loader=SafeLoader)

authenticator = stauth.Authenticate(
Expand Down
14 changes: 7 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
chromadb==0.5.3
datasets==2.20.0
langchainhub==0.1.20
stackapi==0.3.1
langchain==0.2.11
langchain==0.2.12
langchain_chroma==0.1.2
langchain_community==0.2.10
langchain_core==0.2.24
langchain_community==0.2.11
langchain_core==0.2.28
langchain_huggingface==0.0.3
langchain_openai==0.1.19
langchain_openai==0.1.20
langchain_text_splitters==0.2.2
portkey_ai==1.7.0
PyYAML==6.0.1
Requests==2.32.3
streamlit==1.36.0

streamlit_authenticator==0.3.3

0 comments on commit fe7fbf9

Please sign in to comment.