Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
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.")
|