Update app.py
Browse files
app.py
CHANGED
|
@@ -204,10 +204,11 @@ def download_results(results):
|
|
| 204 |
interface = gr.Interface(
|
| 205 |
fn=check_similarity,
|
| 206 |
inputs=[job_desc_input, resumes_input],
|
| 207 |
-
outputs=[results_output, gr.File(label="Download CSV",
|
| 208 |
title="HR Assistant - Resume Screening & Leadership Experience",
|
| 209 |
description="Upload job description and resumes to screen candidates for managerial and team leadership roles and extract candidate details.",
|
| 210 |
allow_flagging="never"
|
| 211 |
)
|
| 212 |
|
| 213 |
interface.launch()
|
|
|
|
|
|
| 204 |
interface = gr.Interface(
|
| 205 |
fn=check_similarity,
|
| 206 |
inputs=[job_desc_input, resumes_input],
|
| 207 |
+
outputs=[results_output, gr.File(label="Download CSV", file=download_results)], # Updated here
|
| 208 |
title="HR Assistant - Resume Screening & Leadership Experience",
|
| 209 |
description="Upload job description and resumes to screen candidates for managerial and team leadership roles and extract candidate details.",
|
| 210 |
allow_flagging="never"
|
| 211 |
)
|
| 212 |
|
| 213 |
interface.launch()
|
| 214 |
+
|