Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def load_models():
|
|
41 |
# Load T5-small model for evaluation
|
42 |
models['evaluator'] = pipeline(
|
43 |
"text2text-generation",
|
44 |
-
model="
|
45 |
max_length=200
|
46 |
)
|
47 |
|
@@ -398,10 +398,10 @@ Score: {score_percent}/100
|
|
398 |
st.title("Google Resume Match Analyzer")
|
399 |
st.markdown(
|
400 |
"""
|
401 |
-
Upload your resume file in **.docx**, **.doc**, or **.txt** format to see how well
|
402 |
-
1. Extracts text from
|
403 |
2. Uses AI to generate a structured candidate summary.
|
404 |
-
3. Evaluates
|
405 |
"""
|
406 |
)
|
407 |
|
@@ -413,7 +413,7 @@ with st.expander("Google's Requirements", expanded=False):
|
|
413 |
uploaded_file = st.file_uploader("Upload your resume (.docx, .doc, or .txt)", type=["docx", "doc", "txt"])
|
414 |
|
415 |
# Process button with optimized flow
|
416 |
-
if uploaded_file is not None and st.button("Analyze
|
417 |
# Create a placeholder for the progress bar
|
418 |
progress_bar = st.progress(0)
|
419 |
status_text = st.empty()
|
@@ -432,7 +432,7 @@ if uploaded_file is not None and st.button("Analyze My Google Fit"):
|
|
432 |
progress_bar.progress(75)
|
433 |
|
434 |
# Display summary
|
435 |
-
st.subheader("
|
436 |
st.markdown(summary)
|
437 |
st.info(f"Summary generated in {summarization_time:.2f} seconds")
|
438 |
|
|
|
41 |
# Load T5-small model for evaluation
|
42 |
models['evaluator'] = pipeline(
|
43 |
"text2text-generation",
|
44 |
+
model="TinyLlama/TinyLlama-1.1B-Chat-v1.0",
|
45 |
max_length=200
|
46 |
)
|
47 |
|
|
|
398 |
st.title("Google Resume Match Analyzer")
|
399 |
st.markdown(
|
400 |
"""
|
401 |
+
Upload your resume file in **.docx**, **.doc**, or **.txt** format to see how well the candidate matchs with Google's hiring requirements. The app performs the following tasks:
|
402 |
+
1. Extracts text from candidate's resume.
|
403 |
2. Uses AI to generate a structured candidate summary.
|
404 |
+
3. Evaluates whether candidates fit for Google or not, providing a match score and specific feedback.
|
405 |
"""
|
406 |
)
|
407 |
|
|
|
413 |
uploaded_file = st.file_uploader("Upload your resume (.docx, .doc, or .txt)", type=["docx", "doc", "txt"])
|
414 |
|
415 |
# Process button with optimized flow
|
416 |
+
if uploaded_file is not None and st.button("Analyze Google Fit"):
|
417 |
# Create a placeholder for the progress bar
|
418 |
progress_bar = st.progress(0)
|
419 |
status_text = st.empty()
|
|
|
432 |
progress_bar.progress(75)
|
433 |
|
434 |
# Display summary
|
435 |
+
st.subheader("Candidate Resume Summary")
|
436 |
st.markdown(summary)
|
437 |
st.info(f"Summary generated in {summarization_time:.2f} seconds")
|
438 |
|