File size: 744 Bytes
56325dc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import streamlit as st
from utils import process_resumes, generate_pdf_report

def main():
    st.title("AI Candidate Screening App")
    job_description = st.text_area("Enter Job Description")
    uploaded_files = st.file_uploader("Upload Resumes (PDF)", accept_multiple_files=True, type=["pdf"])
    
    if st.button("Process Resumes"):
        shortlisted = process_resumes(uploaded_files, job_description)
        for candidate in shortlisted:
            st.write(f"**{candidate['name']}** - Score: {candidate['score']}")
        
        # Generate PDF Report
        pdf_report = generate_pdf_report(shortlisted)
        st.download_button("Download Shortlist Report", pdf_report, "shortlist.pdf")

if __name__ == "__main__":
    main()