Skip to content

Commit

Permalink
Update cv_scanner.py
Browse files Browse the repository at this point in the history
  • Loading branch information
PieroPaialungaAI committed Mar 3, 2023
1 parent 7364674 commit 32c79b3
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion cv_scanner.py
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@
import streamlit as stfrom constants import * def download_template(template_file=TEMPLATE_FILE): content_file = open(template_file,'r') content = content_file.read() st.download_button('The first step is to fill the CV. Download the template here :rocket:', content) # Defaults to 'text/plain' content_file.close() def download_result(template_file=RESULT_FILE): content_file = open(template_file,'r') content = content_file.read() st.download_button('Download the result of your AI improved CV here :wink:', content) # Defaults to 'text/plain' content_file.close()def experience_parser(text_cv): list_experiences = text_cv.split('EXPERIENCE ') selected_experience = [] for l in list_experiences: try: int(l[0][0]) selected_experience.append(l) except: continue return selected_experience
import streamlit as st
from constants import *

def download_template(template_file=TEMPLATE_FILE):
content_file = open(template_file,'r')
content = content_file.read()
st.download_button('The first step is to fill the CV. Download the template here :rocket:', content) # Defaults to 'text/plain'
content_file.close()


def download_result(template_file=RESULT_FILE):
content_file = open(template_file,'r')
content = content_file.read()
st.download_button('Download the result of your AI improved CV here :wink:', content) # Defaults to 'text/plain'
content_file.close()

def experience_parser(text_cv):
list_experiences = text_cv.split('EXPERIENCE ')
selected_experience = []
for l in list_experiences:
try:
int(l[0][0])
selected_experience.append(l)
except:
continue
return selected_experience

0 comments on commit 32c79b3

Please sign in to comment.