Skip to content

Instantly share code, notes, and snippets.

@mkhorasani
Last active October 22, 2020 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkhorasani/6af9073423953b860a34783c06539534 to your computer and use it in GitHub Desktop.
Save mkhorasani/6af9073423953b860a34783c06539534 to your computer and use it in GitHub Desktop.
country = st.sidebar.text_input('Country')
uploaded_file = st.file_uploader('Upload your resume')
file_text = ''
phrases = []
if uploaded_file is not None:
uploaded_file.seek(0)
file = uploaded_file.read()
pdf = PyPDF2.PdfFileReader(io.BytesIO(file))
for page in range(pdf.getNumPages()):
file_text += (pdf.getPage(page).extractText())
phrases.extend(keyphrases(file_text,2,4,10))
if len(phrases) > 0:
q_terms = st.multiselect('Select key phrases',options=phrases,default=phrases)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment