-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7364674
commit 32c79b3
Showing
1 changed file
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |