Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -153,17 +153,16 @@ elif menu == "3️⃣ ATS Match Score":
|
|
| 153 |
)
|
| 154 |
|
| 155 |
result = crew.kickoff(inputs={"resume_text": resume_text, "job_description": job_description})
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
st.write(f"**{missing_keywords_line.strip()}**")
|
| 166 |
-
else:
|
| 167 |
-
st.warning("Unable to parse the match result properly.")
|
| 168 |
else:
|
| 169 |
st.warning("Please upload resume and paste job description.")
|
|
|
|
|
|
|
|
|
| 153 |
)
|
| 154 |
|
| 155 |
result = crew.kickoff(inputs={"resume_text": resume_text, "job_description": job_description})
|
| 156 |
+
extracted_keywords = outputs.tasks_output[0].raw
|
| 157 |
+
|
| 158 |
+
# Then parse extracted_keywords
|
| 159 |
+
match_score_line = next((line for line in extracted_keywords.split('\n') if "Match Score" in line), None)
|
| 160 |
+
missing_keywords_line = next((line for line in extracted_keywords.split('\n') if "Missing Keywords" in line), None)
|
| 161 |
+
st.success("✅ ATS Match Result:")
|
| 162 |
+
st.markdown(f"**{match_score_line.strip()}**")
|
| 163 |
+
st.markdown(f"**{missing_keywords_line.strip()}**")
|
| 164 |
+
|
|
|
|
|
|
|
|
|
|
| 165 |
else:
|
| 166 |
st.warning("Please upload resume and paste job description.")
|
| 167 |
+
else:
|
| 168 |
+
st.warning("Invalid Input")
|