Spaces:
Sleeping
Sleeping
xiaofeifei
commited on
Commit
•
afd1d0b
1
Parent(s):
49cc82e
add show_copy_button
Browse files
app.py
CHANGED
@@ -175,7 +175,7 @@ with gr.Blocks(title="HRMaster", theme="soft") as demo:
|
|
175 |
eduLevel_input = gr.Textbox(label="最低学历要求")
|
176 |
workYearArr_input = gr.Textbox(label="工作年限要求")
|
177 |
with gr.Column():
|
178 |
-
jd_output_text = gr.Textbox(label="生成的岗位JD")
|
179 |
jd_button = gr.Button(value="岗位JD生成")
|
180 |
jd_button.click(generate_jd, [jobTitle_input, eduLevel_input, workYearArr_input], jd_output_text)
|
181 |
with gr.Column():
|
@@ -211,7 +211,7 @@ with gr.Blocks(title="HRMaster", theme="soft") as demo:
|
|
211 |
6. 持续学习和研究新的技术和开发工具,提出并实施技术创新和改进。
|
212 |
|
213 |
任职要求:
|
214 |
-
|
215 |
1. 精通Java编程语言,熟悉Java相关的开发框架和工具,如Spring、Hibernate等。
|
216 |
2. 具备扎实的计算机基础知识,熟悉面向对象设计和设计模式。
|
217 |
3. 具备良好的数据结构和算法基础,对系统性能优化有一定的经验。
|
@@ -238,12 +238,10 @@ with gr.Blocks(title="HRMaster", theme="soft") as demo:
|
|
238 |
with gr.Tab("面试过程辅助"):
|
239 |
interview_row = gr.Row(visible=True)
|
240 |
with interview_row:
|
241 |
-
interview_questions_text = gr.Checkboxgroup(label="面试问题")
|
242 |
interview_questions_generator_button = gr.Button(value="面试问题生成")
|
243 |
-
copy_interview_questions_button = gr.Button(value="拷贝面试问题", visible=False)
|
244 |
interview_questions_generator_button.click(generate_interview_questions_new, [text_output, jd],
|
245 |
-
[interview_questions_text
|
246 |
-
copy_interview_questions_button])
|
247 |
|
248 |
with gr.Tab("测试数据生成"):
|
249 |
with gr.Row():
|
@@ -253,7 +251,7 @@ with gr.Blocks(title="HRMaster", theme="soft") as demo:
|
|
253 |
value=["个人信息", "教育背景", "工作经历", "技能专长", "项目经验", "自我评价"], multiselect=True, label="简历维度",
|
254 |
info="测试简历维度信息"
|
255 |
)
|
256 |
-
test_resume_text = gr.Textbox(label="生成的测试简历信息")
|
257 |
resume_gene_button = gr.Button("测试数据生成")
|
258 |
resume_gene_button.click(generate_test_resume, [targrt_job, resume_item_list], test_resume_text)
|
259 |
test_targrt_job = "java开发工程师"
|
@@ -278,7 +276,7 @@ with gr.Blocks(title="HRMaster", theme="soft") as demo:
|
|
278 |
if_ok = gr.Radio(["是", "否"], label="是否录用", info="最终结果")
|
279 |
|
280 |
with gr.Column():
|
281 |
-
interview_feedback_text = gr.Textbox(label="面试评价")
|
282 |
result_button = gr.Button(value="面试评价生成")
|
283 |
result_button.click(generate_interview_feedback,
|
284 |
inputs=[commu_skills, pro_skills, tech_skills, solve_skills, team_skills,
|
|
|
175 |
eduLevel_input = gr.Textbox(label="最低学历要求")
|
176 |
workYearArr_input = gr.Textbox(label="工作年限要求")
|
177 |
with gr.Column():
|
178 |
+
jd_output_text = gr.Textbox(label="生成的岗位JD",show_copy_button=True)
|
179 |
jd_button = gr.Button(value="岗位JD生成")
|
180 |
jd_button.click(generate_jd, [jobTitle_input, eduLevel_input, workYearArr_input], jd_output_text)
|
181 |
with gr.Column():
|
|
|
211 |
6. 持续学习和研究新的技术和开发工具,提出并实施技术创新和改进。
|
212 |
|
213 |
任职要求:
|
214 |
+
|
215 |
1. 精通Java编程语言,熟悉Java相关的开发框架和工具,如Spring、Hibernate等。
|
216 |
2. 具备扎实的计算机基础知识,熟悉面向对象设计和设计模式。
|
217 |
3. 具备良好的数据结构和算法基础,对系统性能优化有一定的经验。
|
|
|
238 |
with gr.Tab("面试过程辅助"):
|
239 |
interview_row = gr.Row(visible=True)
|
240 |
with interview_row:
|
241 |
+
interview_questions_text = gr.Checkboxgroup(label="面试问题",show_copy_button=True)
|
242 |
interview_questions_generator_button = gr.Button(value="面试问题生成")
|
|
|
243 |
interview_questions_generator_button.click(generate_interview_questions_new, [text_output, jd],
|
244 |
+
[interview_questions_text])
|
|
|
245 |
|
246 |
with gr.Tab("测试数据生成"):
|
247 |
with gr.Row():
|
|
|
251 |
value=["个人信息", "教育背景", "工作经历", "技能专长", "项目经验", "自我评价"], multiselect=True, label="简历维度",
|
252 |
info="测试简历维度信息"
|
253 |
)
|
254 |
+
test_resume_text = gr.Textbox(label="生成的测试简历信息", show_copy_button=True)
|
255 |
resume_gene_button = gr.Button("测试数据生成")
|
256 |
resume_gene_button.click(generate_test_resume, [targrt_job, resume_item_list], test_resume_text)
|
257 |
test_targrt_job = "java开发工程师"
|
|
|
276 |
if_ok = gr.Radio(["是", "否"], label="是否录用", info="最终结果")
|
277 |
|
278 |
with gr.Column():
|
279 |
+
interview_feedback_text = gr.Textbox(label="面试评价", show_copy_button=True)
|
280 |
result_button = gr.Button(value="面试评价生成")
|
281 |
result_button.click(generate_interview_feedback,
|
282 |
inputs=[commu_skills, pro_skills, tech_skills, solve_skills, team_skills,
|