Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,6 @@ from sentence_transformers import SentenceTransformer, util
|
|
| 3 |
import docx
|
| 4 |
import os
|
| 5 |
from PyPDF2 import PdfReader
|
| 6 |
-
import re
|
| 7 |
import requests
|
| 8 |
import pandas as pd
|
| 9 |
|
|
@@ -181,13 +180,10 @@ def download_results(results):
|
|
| 181 |
interface = gr.Interface(
|
| 182 |
fn=check_similarity,
|
| 183 |
inputs=[job_desc_input, resumes_input],
|
| 184 |
-
outputs=[results_output],
|
| 185 |
title="HR Assistant - Resume Screening & Leadership Experience",
|
| 186 |
description="Upload job description and resumes to screen candidates for managerial and team leadership roles and extract candidate details.",
|
| 187 |
allow_flagging="never"
|
| 188 |
)
|
| 189 |
|
| 190 |
-
# Adding the download button for CSV
|
| 191 |
-
interface.add_component(gr.File, "Download CSV", fn=download_results)
|
| 192 |
-
|
| 193 |
interface.launch()
|
|
|
|
| 3 |
import docx
|
| 4 |
import os
|
| 5 |
from PyPDF2 import PdfReader
|
|
|
|
| 6 |
import requests
|
| 7 |
import pandas as pd
|
| 8 |
|
|
|
|
| 180 |
interface = gr.Interface(
|
| 181 |
fn=check_similarity,
|
| 182 |
inputs=[job_desc_input, resumes_input],
|
| 183 |
+
outputs=[results_output, gr.File(label="Download CSV", fn=download_results)],
|
| 184 |
title="HR Assistant - Resume Screening & Leadership Experience",
|
| 185 |
description="Upload job description and resumes to screen candidates for managerial and team leadership roles and extract candidate details.",
|
| 186 |
allow_flagging="never"
|
| 187 |
)
|
| 188 |
|
|
|
|
|
|
|
|
|
|
| 189 |
interface.launch()
|