build(app.py): add routing between admin and auth pages

This commit is contained in:
Krrish Dholakia 2023-12-23 16:22:28 +05:30
parent 8c6d11ea07
commit 1bfab87323
3 changed files with 66 additions and 52 deletions

View file

@ -24,7 +24,7 @@ def sign_in_with_otp(email: str):
# Create the Streamlit app
def main():
def auth_page():
st.title("User Authentication")
# User email input
@ -33,7 +33,3 @@ def main():
# Sign in button
if st.button("Sign In"):
sign_in_with_otp(email)
if __name__ == "__main__":
main()