Vincent Claes commited on
Commit
1f2286b
1 Parent(s): eaaa73b

only keep skills

Browse files
Files changed (2) hide show
  1. app.py +1 -2
  2. recruiting_assistant.py +2 -9
app.py CHANGED
@@ -93,8 +93,7 @@ with demo:
93
  ## 3. You have a relevant introduction email to send to the customer
94
  """)
95
  text_intro = gr.Textbox(label="Intro Email")
96
- # evaluation = gr.Textbox(label="Evaluation of the skills")
97
- evaluation = gr.Markdown(label="Evaluation of the skills")
98
  b2.click(recruiting_assistant.create_intro,
99
  inputs=[
100
  text_vacancy,
 
93
  ## 3. You have a relevant introduction email to send to the customer
94
  """)
95
  text_intro = gr.Textbox(label="Intro Email")
96
+ evaluation = gr.Textbox(label="Evaluation of the skills")
 
97
  b2.click(recruiting_assistant.create_intro,
98
  inputs=[
99
  text_vacancy,
recruiting_assistant.py CHANGED
@@ -186,17 +186,10 @@ def create_intro(vacancy=vacancy, resume=resume):
186
  new_line = '\n'
187
 
188
  score = f"""
189
- ## Skills (Score: {score_skills}%)
190
  Relevant Skills: {",".join(resume_skills["skills_present"])}
191
- Not Relevant Skills: {",".join(resume_skills["skills_not_present"])}
192
-
193
-
194
- ## Experience (Score: {score_experiences}%)
195
- Relevant experience: {(new_line+"-").join(check_past_experiences["relevant_experiences"])}
196
- Not Relevant experience: {(new_line+"-").join(check_past_experiences["irrelevant_experiences"])}
197
-
198
  """
199
- # return result["introduction_email"], json.dumps({"resume skills":result['resume_skills'], "check_past_experiences": result['check_past_experiences']}, indent=4)
200
  return result["introduction_email"], score
201
 
202
  if __name__ == '__main__':
 
186
  new_line = '\n'
187
 
188
  score = f"""
189
+ Skills (Score: {score_skills}%)
190
  Relevant Skills: {",".join(resume_skills["skills_present"])}
191
+ Not Relevant Skills: {",".join(resume_skills["skills_not_present"])}
 
 
 
 
 
 
192
  """
 
193
  return result["introduction_email"], score
194
 
195
  if __name__ == '__main__':