Spaces:
Sleeping
Sleeping
DreamStream-1
commited on
Commit
•
d22fc6f
1
Parent(s):
831ab6e
Update app.py
Browse files
app.py
CHANGED
@@ -201,7 +201,7 @@ def run_gradio_interface():
|
|
201 |
resume_file = gr.File(label="Upload Resume")
|
202 |
job_description_file = gr.File(label="Upload Job Description")
|
203 |
|
204 |
-
#
|
205 |
summary_output = gr.Textbox(label="Summary of Analysis", interactive=False, lines=10)
|
206 |
skills_output = gr.Textbox(label="Skills Overview", interactive=False, lines=10)
|
207 |
qualifications_output = gr.Textbox(label="Qualifications Overview", interactive=False, lines=10)
|
@@ -224,13 +224,14 @@ def run_gradio_interface():
|
|
224 |
with gr.Tab("Communication"):
|
225 |
communication_output.render()
|
226 |
|
|
|
|
|
227 |
def analyze(resume, job_desc):
|
228 |
if resume and job_desc:
|
229 |
summary, skills, qualifications, experience, communication = analyze_resume(resume, job_desc)
|
230 |
return summary, skills, qualifications, experience, communication
|
231 |
return "Please upload both files."
|
232 |
|
233 |
-
analyze_button = gr.Button("Analyze")
|
234 |
analyze_button.click(analyze, inputs=[resume_file, job_description_file], outputs=[summary_output, skills_output, qualifications_output, experience_output, communication_output])
|
235 |
|
236 |
demo.launch()
|
|
|
201 |
resume_file = gr.File(label="Upload Resume")
|
202 |
job_description_file = gr.File(label="Upload Job Description")
|
203 |
|
204 |
+
# Create placeholders for output messages
|
205 |
summary_output = gr.Textbox(label="Summary of Analysis", interactive=False, lines=10)
|
206 |
skills_output = gr.Textbox(label="Skills Overview", interactive=False, lines=10)
|
207 |
qualifications_output = gr.Textbox(label="Qualifications Overview", interactive=False, lines=10)
|
|
|
224 |
with gr.Tab("Communication"):
|
225 |
communication_output.render()
|
226 |
|
227 |
+
analyze_button = gr.Button("Analyze")
|
228 |
+
|
229 |
def analyze(resume, job_desc):
|
230 |
if resume and job_desc:
|
231 |
summary, skills, qualifications, experience, communication = analyze_resume(resume, job_desc)
|
232 |
return summary, skills, qualifications, experience, communication
|
233 |
return "Please upload both files."
|
234 |
|
|
|
235 |
analyze_button.click(analyze, inputs=[resume_file, job_description_file], outputs=[summary_output, skills_output, qualifications_output, experience_output, communication_output])
|
236 |
|
237 |
demo.launch()
|