theabhisekdatta/Application-Tracking-System
0
1import streamlit as st2import PyPDF2 as pdf3from utilities.text_matching import calculate_similarity4# from utilities.missing_keywords import find_missing_keywords5from utilities.extract_summary import generate_summary6 7 8def input_pdf_text(uploaded_file):9 reader = pdf.PdfReader(uploaded_file)10 text = ""11 for page in range(len(reader.pages)):12 page = reader.pages[page]13 text += str(page.extract_text())14 return text15 16 17# streamlit app18st.title(":blue[Application Tracking System]")19 20 21# Job Description Loading..22jd = st.text_area("Paste the Job Description")23 24 25uploaded_file = st.file_uploader(26 "Upload Your Resume", type="pdf", help="Please uplaod the pdf")27 28submit = st.button("Check your Resume")29 30if submit:31 if uploaded_file is not None:32 text = input_pdf_text(uploaded_file)33 jd_matching = calculate_similarity(jd, text)34 # missing_keywords = find_missing_keywords(text, jd)35 summary = generate_summary(jd)36 st.write("Job Description Matching: ", f"{jd_matching:.2f}%")37 st.text_area("Summary", value=summary, height=200)38 