Spaces:
Sleeping
Sleeping
datasciencedojo
commited on
Commit
•
32afe5e
1
Parent(s):
3e77f2c
Update app.py
Browse files
app.py
CHANGED
@@ -7,10 +7,6 @@ import pandas as pd
|
|
7 |
import hashlib
|
8 |
|
9 |
load_dotenv()
|
10 |
-
def copytoclipboard():
|
11 |
-
if st.button("Copy to Clipboard"):
|
12 |
-
pyperclip.copy(st.session_state.analysis)
|
13 |
-
st.success("Cover letter copied to clipboard!")
|
14 |
|
15 |
def hash_inputs(resume_text, job_title, must_have, job_pref):
|
16 |
# Generate a hash based on the inputs
|
@@ -95,10 +91,12 @@ def concise_resp(ext_res):
|
|
95 |
"""
|
96 |
|
97 |
return formatted_resp
|
|
|
98 |
def filecheck(resume_file):
|
99 |
if len(resume_file)==1 and resume_file is not None:
|
100 |
resume_text = parse_resume(resume_file[0])
|
101 |
return resume_text
|
|
|
102 |
def filecheck_error(resume_file):
|
103 |
if len(resume_file)==0:
|
104 |
st.warning("Please upload a Resume.")
|
@@ -137,7 +135,7 @@ def main():
|
|
137 |
if 'analysis_mc_s_exp' not in st.session_state:
|
138 |
st.session_state.analysis_mc_s_exp = None
|
139 |
|
140 |
-
st.title("
|
141 |
|
142 |
|
143 |
# Select Task
|
|
|
7 |
import hashlib
|
8 |
|
9 |
load_dotenv()
|
|
|
|
|
|
|
|
|
10 |
|
11 |
def hash_inputs(resume_text, job_title, must_have, job_pref):
|
12 |
# Generate a hash based on the inputs
|
|
|
91 |
"""
|
92 |
|
93 |
return formatted_resp
|
94 |
+
|
95 |
def filecheck(resume_file):
|
96 |
if len(resume_file)==1 and resume_file is not None:
|
97 |
resume_text = parse_resume(resume_file[0])
|
98 |
return resume_text
|
99 |
+
|
100 |
def filecheck_error(resume_file):
|
101 |
if len(resume_file)==0:
|
102 |
st.warning("Please upload a Resume.")
|
|
|
135 |
if 'analysis_mc_s_exp' not in st.session_state:
|
136 |
st.session_state.analysis_mc_s_exp = None
|
137 |
|
138 |
+
st.title("SmartHire-Assistant")
|
139 |
|
140 |
|
141 |
# Select Task
|