Update src/streamlit_app.py
Browse files- src/streamlit_app.py +7 -1
src/streamlit_app.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
from io import BytesIO
|
|
|
|
| 3 |
|
| 4 |
# === App Configuration ===
|
| 5 |
st.set_page_config(
|
|
@@ -29,6 +30,9 @@ st.header("π Optimize Your Resume for the Job You Want")
|
|
| 29 |
uploaded_cv = st.file_uploader("π Upload Your CV (PDF only)", type=["pdf"])
|
| 30 |
|
| 31 |
github_username = st.text_input("π Enter Your GitHub Username")
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
job_mode = st.radio("What job info do you have?", ["Job Title", "Full Job Posting"])
|
| 34 |
|
|
@@ -41,6 +45,8 @@ else:
|
|
| 41 |
if st.button("β¨ Optimize Resume"):
|
| 42 |
if not uploaded_cv or not github_username or not job_input.strip():
|
| 43 |
st.warning("Please fill in all fields and upload a valid resume.")
|
|
|
|
|
|
|
| 44 |
else:
|
| 45 |
with st.spinner("Analyzing your GitHub, resume, and job requirements..."):
|
| 46 |
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
from io import BytesIO
|
| 3 |
+
from resume import CVParse
|
| 4 |
|
| 5 |
# === App Configuration ===
|
| 6 |
st.set_page_config(
|
|
|
|
| 30 |
uploaded_cv = st.file_uploader("π Upload Your CV (PDF only)", type=["pdf"])
|
| 31 |
|
| 32 |
github_username = st.text_input("π Enter Your GitHub Username")
|
| 33 |
+
if uploaded_cv:
|
| 34 |
+
doc = create_doc(uploaded_cv)
|
| 35 |
+
skills = extract("SKILLS", doc)
|
| 36 |
|
| 37 |
job_mode = st.radio("What job info do you have?", ["Job Title", "Full Job Posting"])
|
| 38 |
|
|
|
|
| 45 |
if st.button("β¨ Optimize Resume"):
|
| 46 |
if not uploaded_cv or not github_username or not job_input.strip():
|
| 47 |
st.warning("Please fill in all fields and upload a valid resume.")
|
| 48 |
+
st.subheader("π§ Recommended Skills for This Role")
|
| 49 |
+
st.write(", ".join(result["skills"]))
|
| 50 |
else:
|
| 51 |
with st.spinner("Analyzing your GitHub, resume, and job requirements..."):
|
| 52 |
|