DreamStream-1 commited on
Commit
7e95df0
·
verified ·
1 Parent(s): 6603914

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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
 
@@ -183,7 +182,7 @@ def download_results(results):
183
  interface = gr.Interface(
184
  fn=check_similarity,
185
  inputs=[job_desc_input, resumes_input],
186
- outputs=[results_output, gr.File(label="Download CSV", file=download_results)], # Corrected this line
187
  title="HR Assistant - Resume Screening & Leadership Experience",
188
  description="Upload job description and resumes to screen candidates for managerial and team leadership roles and extract candidate details.",
189
  allow_flagging="never"
 
3
  import docx
4
  import os
5
  from PyPDF2 import PdfReader
 
6
  import requests
7
  import pandas as pd
8
 
 
182
  interface = gr.Interface(
183
  fn=check_similarity,
184
  inputs=[job_desc_input, resumes_input],
185
+ outputs=[results_output, gr.File(label="Download CSV", value=download_results)], # Corrected this line
186
  title="HR Assistant - Resume Screening & Leadership Experience",
187
  description="Upload job description and resumes to screen candidates for managerial and team leadership roles and extract candidate details.",
188
  allow_flagging="never"