Spaces:
Sleeping
Sleeping
Update similarity_score_refined.py
Browse files
similarity_score_refined.py
CHANGED
@@ -52,7 +52,7 @@ drive.mount('/content/drive')
|
|
52 |
|
53 |
model = genai.GenerativeModel('gemini-pro')
|
54 |
|
55 |
-
def
|
56 |
"""
|
57 |
Use Gemini Pro to evaluate the relevance score between a tailored resume and job description.
|
58 |
|
@@ -115,7 +115,7 @@ And the job description below:
|
|
115 |
if not reason:
|
116 |
reason = "No reason provided."
|
117 |
|
118 |
-
return
|
119 |
|
120 |
except Exception as e:
|
121 |
print(f"Error in relevance checking: {e}")
|
|
|
52 |
|
53 |
model = genai.GenerativeModel('gemini-pro')
|
54 |
|
55 |
+
def similarity_main(tailored_resume, job_description):
|
56 |
"""
|
57 |
Use Gemini Pro to evaluate the relevance score between a tailored resume and job description.
|
58 |
|
|
|
115 |
if not reason:
|
116 |
reason = "No reason provided."
|
117 |
|
118 |
+
return score
|
119 |
|
120 |
except Exception as e:
|
121 |
print(f"Error in relevance checking: {e}")
|