Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -67,10 +67,22 @@ if menu == "1️⃣ Extract Resume Keywords":
|
|
| 67 |
if st.button("Extract Keywords"):
|
| 68 |
if resume_file:
|
| 69 |
resume_text = extract_text_from_file(resume_file)
|
| 70 |
-
|
| 71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
st.write("### ✅ Extracted Resume Keywords:")
|
| 73 |
-
st.write(
|
| 74 |
else:
|
| 75 |
st.warning("Please upload a resume file.")
|
| 76 |
|
|
@@ -79,10 +91,21 @@ elif menu == "2️⃣ Analyze JD":
|
|
| 79 |
job_description = st.text_area("Paste Job Description")
|
| 80 |
if st.button("Analyze JD"):
|
| 81 |
if job_description:
|
| 82 |
-
task_jd = Task(
|
| 83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
st.write("### ✅ Extracted JD Keywords:")
|
| 85 |
-
st.write(
|
| 86 |
else:
|
| 87 |
st.warning("Please paste a job description.")
|
| 88 |
|
|
@@ -93,9 +116,21 @@ elif menu == "3️⃣ ATS Match Score":
|
|
| 93 |
if st.button("Analyze Match"):
|
| 94 |
if resume_file and job_description:
|
| 95 |
resume_text = extract_text_from_file(resume_file)
|
| 96 |
-
|
| 97 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
st.write("### ✅ ATS Match Score:")
|
| 99 |
-
st.write(
|
| 100 |
else:
|
| 101 |
-
st.warning("Please upload resume and paste job description.")
|
|
|
|
| 67 |
if st.button("Extract Keywords"):
|
| 68 |
if resume_file:
|
| 69 |
resume_text = extract_text_from_file(resume_file)
|
| 70 |
+
|
| 71 |
+
task_resume = Task(
|
| 72 |
+
description="Extract keywords from resume",
|
| 73 |
+
agent=resume_agent,
|
| 74 |
+
expected_output="List of skills"
|
| 75 |
+
)
|
| 76 |
+
|
| 77 |
+
crew = Crew(
|
| 78 |
+
agents=[resume_agent],
|
| 79 |
+
tasks=[task_resume],
|
| 80 |
+
verbose=True
|
| 81 |
+
)
|
| 82 |
+
|
| 83 |
+
result = crew.kickoff(inputs={"resume_text": resume_text})
|
| 84 |
st.write("### ✅ Extracted Resume Keywords:")
|
| 85 |
+
st.write(result)
|
| 86 |
else:
|
| 87 |
st.warning("Please upload a resume file.")
|
| 88 |
|
|
|
|
| 91 |
job_description = st.text_area("Paste Job Description")
|
| 92 |
if st.button("Analyze JD"):
|
| 93 |
if job_description:
|
| 94 |
+
task_jd = Task(
|
| 95 |
+
description="Extract keywords from job description",
|
| 96 |
+
agent=jd_agent,
|
| 97 |
+
expected_output="List of skills"
|
| 98 |
+
)
|
| 99 |
+
|
| 100 |
+
crew = Crew(
|
| 101 |
+
agents=[jd_agent],
|
| 102 |
+
tasks=[task_jd],
|
| 103 |
+
verbose=True
|
| 104 |
+
)
|
| 105 |
+
|
| 106 |
+
result = crew.kickoff(inputs={"job_description": job_description})
|
| 107 |
st.write("### ✅ Extracted JD Keywords:")
|
| 108 |
+
st.write(result)
|
| 109 |
else:
|
| 110 |
st.warning("Please paste a job description.")
|
| 111 |
|
|
|
|
| 116 |
if st.button("Analyze Match"):
|
| 117 |
if resume_file and job_description:
|
| 118 |
resume_text = extract_text_from_file(resume_file)
|
| 119 |
+
|
| 120 |
+
task_match = Task(
|
| 121 |
+
description="Compare resume and job description, give match score",
|
| 122 |
+
agent=match_agent,
|
| 123 |
+
expected_output="Match score & missing keywords"
|
| 124 |
+
)
|
| 125 |
+
|
| 126 |
+
crew = Crew(
|
| 127 |
+
agents=[match_agent],
|
| 128 |
+
tasks=[task_match],
|
| 129 |
+
verbose=True
|
| 130 |
+
)
|
| 131 |
+
|
| 132 |
+
result = crew.kickoff(inputs={"resume_text": resume_text, "job_description": job_description})
|
| 133 |
st.write("### ✅ ATS Match Score:")
|
| 134 |
+
st.write(result)
|
| 135 |
else:
|
| 136 |
+
st.warning("Please upload resume and paste job description.")
|