-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
55 lines (43 loc) · 1.32 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import streamlit as st
from log_in import show_login
from user import sign_up
from home import JobSwipe
from job_list import JobList
from streamlit_option_menu import option_menu
# Initialize session state
if 'authenticated' not in st.session_state:
st.session_state['authenticated'] = False
if 'sign' not in st.session_state:
st.session_state['sign'] = False
if 'user' not in st.session_state:
st.session_state['user'] = None
def main():
if not st.session_state['authenticated']:
if st.session_state['sign']:
show_login()
else:
sign_up()
else:
st.set_page_config(
page_title="Jobswipe",
page_icon="👔",
layout="wide",
initial_sidebar_state="expanded",
)
st.title("JOBSWIPE")
# Display the Option menu
selected = option_menu(
menu_title=None,
options=['Job Match', 'Job List'],
icons=['graph-up', 'clipboard-data'],
menu_icon="Cast",
default_index=0,
orientation='horizontal', )
if selected =="Job Match":
jobswipe = JobSwipe()
jobswipe.run()
elif selected =="Job List":
joblist = JobList()
JobList.filter_job()
if __name__ == "__main__":
main()