all_code / app.py
Nassira's picture
Update app.py
68922f9 verified
Raw History Blame Contribute Delete
835 Bytes
import streamlit as st
from cv_analyzer import analyze_cv
from personal_information import analyze_personal_info
from spelling_grammar_checker import evaluate_cv_text
# Import other necessary modules
def main():
st.title('CV Analysis App')
uploaded_file = st.file_uploader("Upload a CV", type=["pdf", "png", "jpg", "jpeg"])
if uploaded_file is not None:
# Process the uploaded file
cv_analysis = analyze_cv(uploaded_file)
personal_info = analyze_personal_info(uploaded_file)
spelling_grammar_score = evaluate_cv_text(uploaded_file)
# Display results
st.write("CV Analysis:", cv_analysis)
st.write("Personal Information:", personal_info)
st.write("Spelling and Grammar Score:", spelling_grammar_score)
if __name__ == "__main__":
main()