Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,9 +35,32 @@ with col2:
|
|
35 |
|
36 |
# Bottom section: Output
|
37 |
st.subheader("Fit Check Results")
|
|
|
|
|
38 |
if resume_text and job_description:
|
39 |
st.write("Your resume and job description are being processed...")
|
40 |
-
|
41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
else:
|
43 |
st.write("Please upload both a resume and a job description.")
|
|
|
35 |
|
36 |
# Bottom section: Output
|
37 |
st.subheader("Fit Check Results")
|
38 |
+
|
39 |
+
# Ensure both resume and JD are provided before proceeding
|
40 |
if resume_text and job_description:
|
41 |
st.write("Your resume and job description are being processed...")
|
42 |
+
|
43 |
+
# Call the generative AI API or process the match logic here (e.g., calling the Gemini API)
|
44 |
+
# For now, we simulate the match process and display the output
|
45 |
+
|
46 |
+
prompt = f"""
|
47 |
+
You are an expert recruiter and hiring manager assistant. Analyze the following details and provide a match score (0-10) for how well the resume matches the job description:
|
48 |
+
|
49 |
+
1. Analyze this Resume: {resume_text}
|
50 |
+
2. Analyze this Job Description: {job_description}
|
51 |
+
3. Identify the key skills, experience, and qualifications mentioned in the job description.
|
52 |
+
4. Compare the above with the details provided in the resume.
|
53 |
+
5. Provide a match score based on how well the resume aligns with the job description. Include a brief justification for the score.
|
54 |
+
"""
|
55 |
+
|
56 |
+
# Here you would send the 'prompt' to the API or some function to generate a result
|
57 |
+
# For now, we'll simulate a result:
|
58 |
+
match_score = 8 # Just an example score
|
59 |
+
justification = "The resume matches most of the key skills mentioned in the job description, but there is some mismatch in the experience level."
|
60 |
+
|
61 |
+
# Display results
|
62 |
+
st.write(f"**Match Score:** {match_score}/10")
|
63 |
+
st.write(f"**Justification:** {justification}")
|
64 |
+
|
65 |
else:
|
66 |
st.write("Please upload both a resume and a job description.")
|