Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,11 @@ if "resume_data" not in st.session_state:
|
|
14 |
|
15 |
if "jobdescription" not in st.session_state:
|
16 |
st.session_state.jobdescription = ""
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
def page1():
|
19 |
st.title("AI-Powered ATS Screening")
|
@@ -51,7 +56,7 @@ def start():
|
|
51 |
|
52 |
st.subheader("AI FEEDBACK:")
|
53 |
st.write(model_feedback.text)
|
54 |
-
|
55 |
else:
|
56 |
st.info("Please, upload Resume and Provide the Job Description")
|
57 |
|
@@ -66,4 +71,5 @@ if st.session_state.page_number == 1:
|
|
66 |
st.button("View your Extracted Resume data", on_click = lambda: setattr(st.session_state,"page_number", 3))
|
67 |
st.button("Go to Job Description Page", on_click=lambda: setattr(st.session_state, "page_number", 2))
|
68 |
else:
|
69 |
-
st.button("Go to PDF Upload Page", on_click=lambda:
|
|
|
|
14 |
|
15 |
if "jobdescription" not in st.session_state:
|
16 |
st.session_state.jobdescription = ""
|
17 |
+
|
18 |
+
def set_page_number_and_reset_data():
|
19 |
+
st.session_state.page_number = 1
|
20 |
+
st.session_state.resume_data = ""
|
21 |
+
|
22 |
|
23 |
def page1():
|
24 |
st.title("AI-Powered ATS Screening")
|
|
|
56 |
|
57 |
st.subheader("AI FEEDBACK:")
|
58 |
st.write(model_feedback.text)
|
59 |
+
|
60 |
else:
|
61 |
st.info("Please, upload Resume and Provide the Job Description")
|
62 |
|
|
|
71 |
st.button("View your Extracted Resume data", on_click = lambda: setattr(st.session_state,"page_number", 3))
|
72 |
st.button("Go to Job Description Page", on_click=lambda: setattr(st.session_state, "page_number", 2))
|
73 |
else:
|
74 |
+
st.button("Go to PDF Upload Page", on_click=lambda: set_page_number_and_reset_data())
|
75 |
+
|