-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
19 lines (16 loc) · 731 Bytes
/
Copy pathmain.py
File metadata and controls
19 lines (16 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import streamlit as st
# import ezsheets
# import pandas
from login_signup import login_signup # import the login_signup class from the login_signup.py file
# Connect to the Google Sheets API
# ss = ezsheets.Spreadsheet('152M9yVlljFVDf5Nnd2oBjWfvxf5Sfy2n2H7Sz5__1F4')
st.title("Login or Sign Up") # Set the title of the page
st.sidebar.title("Project CMS") # Set the Side menu
page = st.sidebar.radio("## Menu", ["Login", "Create an account"]) # Create a radio button for page selection
# Page routing logic
if page == "Login":
login_signup.login()
elif page == "Create an account":
login_signup.create_an_account()
elif page == "forgot_password":
login_signup.forgot_password()