Spaces:
Sleeping
Sleeping
Commit
•
95e832d
1
Parent(s):
6954104
update gradio
Browse files- app.py +14 -16
- requirements.txt +1 -1
app.py
CHANGED
@@ -249,11 +249,9 @@ with gr.Blocks(title="HRMaster", theme="soft") as demo:
|
|
249 |
jd_output_text = gr.Textbox(label="生成的岗位JD")
|
250 |
jd_button = gr.Button(value="岗位JD生成")
|
251 |
jd_button.click(generate_jd, [jobTitle_input, eduLevel_input, workYearArr_input], jd_output_text)
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
# )
|
257 |
|
258 |
with gr.Tab("简历筛选辅助"):
|
259 |
with gr.Row():
|
@@ -289,7 +287,7 @@ with gr.Blocks(title="HRMaster", theme="soft") as demo:
|
|
289 |
6. 具备良好的问题解决能力和学习能力,能够快速地理解和解决技术问题。
|
290 |
7. 具备良好的代码风格和规范意识,注重代码质量和可维护性。
|
291 |
'''
|
292 |
-
|
293 |
with gr.Column():
|
294 |
# person_job_fit = gr.Textbox(label="人岗匹配度")
|
295 |
edu_matching = gr.CheckboxGroup(["完全匹配", "较为匹配", "较不匹配", "完全不匹配"], label="教育背景匹配度", info="")
|
@@ -314,8 +312,8 @@ with gr.Blocks(title="HRMaster", theme="soft") as demo:
|
|
314 |
radar_reasons = gr.Textbox(label="打分理由")
|
315 |
radar_button = gr.Button(value="生成能力雷达图")
|
316 |
radar_button.click(gene_talent_radar, [text_output, jd], [radar_outputs, radar_reasons])
|
317 |
-
|
318 |
-
|
319 |
resume_file.change(parse_file, resume_file, [text_output, talent_row, jd_row, radar_row])
|
320 |
|
321 |
with gr.Tab("面试过程辅助"):
|
@@ -339,9 +337,9 @@ with gr.Blocks(title="HRMaster", theme="soft") as demo:
|
|
339 |
resume_gene_button.click(generate_test_resume, [targrt_job, resume_item_list], test_resume_text)
|
340 |
test_targrt_job = "java开发工程师"
|
341 |
test_resume_item_list = ["个人信息", "教育背景", "工作经历", "实习经历", "技能专长", "项目经验", "获奖与荣誉", "自我评价"]
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
|
346 |
with gr.Tab("面试评价生成器"):
|
347 |
with gr.Row():
|
@@ -365,11 +363,11 @@ with gr.Blocks(title="HRMaster", theme="soft") as demo:
|
|
365 |
inputs=[commu_skills, pro_skills, tech_skills, solve_skills, team_skills,
|
366 |
pressure_resistance, if_ok],
|
367 |
outputs=interview_feedback_text)
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
with gr.Tab("HRChat"):
|
374 |
with gr.Column():
|
375 |
chatbot = gr.Chatbot(label="HRChat")
|
|
|
249 |
jd_output_text = gr.Textbox(label="生成的岗位JD")
|
250 |
jd_button = gr.Button(value="岗位JD生成")
|
251 |
jd_button.click(generate_jd, [jobTitle_input, eduLevel_input, workYearArr_input], jd_output_text)
|
252 |
+
with gr.Column():
|
253 |
+
gr.Examples([["java开发工程师", "本科", "三年以上"], ["算法工程师", "研究生", "一年以上"]],
|
254 |
+
[jobTitle_input, eduLevel_input, workYearArr_input], [jd_output_text], fn=generate_jd,)
|
|
|
|
|
255 |
|
256 |
with gr.Tab("简历筛选辅助"):
|
257 |
with gr.Row():
|
|
|
287 |
6. 具备良好的问题解决能力和学习能力,能够快速地理解和解决技术问题。
|
288 |
7. 具备良好的代码风格和规范意识,注重代码质量和可维护性。
|
289 |
'''
|
290 |
+
gr.Examples([test_jd], [jd])
|
291 |
with gr.Column():
|
292 |
# person_job_fit = gr.Textbox(label="人岗匹配度")
|
293 |
edu_matching = gr.CheckboxGroup(["完全匹配", "较为匹配", "较不匹配", "完全不匹配"], label="教育背景匹配度", info="")
|
|
|
312 |
radar_reasons = gr.Textbox(label="打分理由")
|
313 |
radar_button = gr.Button(value="生成能力雷达图")
|
314 |
radar_button.click(gene_talent_radar, [text_output, jd], [radar_outputs, radar_reasons])
|
315 |
+
gr.Examples([os.path.join(os.path.dirname(__file__), "test_resume.txt")], resume_file,
|
316 |
+
[text_output, talent_row, jd_row, radar_row], fn=parse_file, cache_examples=True)
|
317 |
resume_file.change(parse_file, resume_file, [text_output, talent_row, jd_row, radar_row])
|
318 |
|
319 |
with gr.Tab("面试过程辅助"):
|
|
|
337 |
resume_gene_button.click(generate_test_resume, [targrt_job, resume_item_list], test_resume_text)
|
338 |
test_targrt_job = "java开发工程师"
|
339 |
test_resume_item_list = ["个人信息", "教育背景", "工作经历", "实习经历", "技能专长", "项目经验", "获奖与荣誉", "自我评价"]
|
340 |
+
gr.Examples([[test_targrt_job, test_resume_item_list]], targrt_job, resume_item_list,
|
341 |
+
fn=generate_test_resume,
|
342 |
+
)
|
343 |
|
344 |
with gr.Tab("面试评价生成器"):
|
345 |
with gr.Row():
|
|
|
363 |
inputs=[commu_skills, pro_skills, tech_skills, solve_skills, team_skills,
|
364 |
pressure_resistance, if_ok],
|
365 |
outputs=interview_feedback_text)
|
366 |
+
gr.Examples([["强", "中", "弱", "强", "中", "弱", "是"], ["弱", "中", "弱", "强", "中", "弱", "否"]],
|
367 |
+
[commu_skills, pro_skills, tech_skills, solve_skills, team_skills,
|
368 |
+
pressure_resistance, if_ok], interview_feedback_text,
|
369 |
+
fn=generate_interview_feedback,
|
370 |
+
)
|
371 |
with gr.Tab("HRChat"):
|
372 |
with gr.Column():
|
373 |
chatbot = gr.Chatbot(label="HRChat")
|
requirements.txt
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
openai
|
2 |
-
gradio
|
3 |
plotly
|
|
|
1 |
openai
|
2 |
+
gradio==3.37.0
|
3 |
plotly
|