TKM03 commited on
Commit
5bda631
Β·
verified Β·
1 Parent(s): 71febd2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -62,14 +62,14 @@ def filter_relevant_resumes(files):
62
  }
63
 
64
  if status == "Relevant":
65
- # Copy file to filtered folder
66
  dest_path = f"filtered_resumes/{file_name}"
67
  with open(dest_path, "wb") as f_out:
68
- f_out.write(file.read())
69
  relevant_files.append(dest_path)
70
 
71
  return predictions, relevant_files
72
 
 
73
  # Gradio UI
74
  with gr.Blocks(title="Resume Relevance Classifier & Filter") as demo:
75
  gr.Markdown("## πŸ“‚ Resume Relevance Filter using Hugging Face Model\nUpload PDF resumes and filter out only the relevant ones.")
 
62
  }
63
 
64
  if status == "Relevant":
 
65
  dest_path = f"filtered_resumes/{file_name}"
66
  with open(dest_path, "wb") as f_out:
67
+ f_out.write(file.data)
68
  relevant_files.append(dest_path)
69
 
70
  return predictions, relevant_files
71
 
72
+
73
  # Gradio UI
74
  with gr.Blocks(title="Resume Relevance Classifier & Filter") as demo:
75
  gr.Markdown("## πŸ“‚ Resume Relevance Filter using Hugging Face Model\nUpload PDF resumes and filter out only the relevant ones.")