Spaces:
Runtime error
Runtime error
Update app.py
Browse files15 unmodified lines1617181920212215 unmodified linesdoc = Document(docx_file)text = "\n".join([para.text for para in doc.paragraphs])return text# Function to extract information from a resumedef extract_info_from_resume(resume_path):if resume_path.name.endswith('.pdf'):15 unmodified lines1617181920212223242526272829303115 unmodified linesdoc = Document(docx_file)text = "\n".join([para.text for para in doc.paragraphs])return textdef extract_text_from_pdf(pdf_file):text = ""pdf = PdfReader(pdf_file)if not pdf.pages:raise ValueError("The PDF file is empty.")for page in pdf.pages:text += page.extract_text()return text# Function to extract information from a resumedef extract_info_from_resume(resume_path):if resume_path.name.endswith('.pdf'):
app.py+10-1