Spaces:
Build error
Build error
Update app.py
Browse files541 unmodified lines542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587541 unmodified linesst.info(f"Summary generated in {summarization_time:.2f} seconds")# Step 3: Generate Google fit assessmentstatus_text.text("Step 3/3: Evaluating Google fit...")assessment, match_percentage, category_details, assessment_time = analyze_google_fit(summary)progress_bar.progress(100)# Clear status messagesstatus_text.empty()# Display Google fit resultsst.subheader("Google Fit Assessment")# Display match percentage with appropriate color and emoji - with more realistic thresholdsif match_percentage >= 85:st.success(f"**Overall Google Match Score:** {match_percentage}% π")elif match_percentage >= 70:st.success(f"**Overall Google Match Score:** {match_percentage}% β ")elif match_percentage >= 50:st.warning(f"**Overall Google Match Score:** {match_percentage}% β οΈ")else:st.error(f"**Overall Google Match Score:** {match_percentage}% π")# NEW ADDITION: Add detailed score breakdownst.markdown("### Score Breakdown")# Create a neat table with category scoresbreakdown_data = []for category, details in category_details.items():label = {"technical_skills": "Technical Programming Skills","advanced_tech": "Advanced Technology Knowledge","problem_solving": "Problem Solving Abilities","innovation": "Innovation Mindset","soft_skills": "Collaboration & Leadership"}[category]# Create a visual indicator for the scorescore = details["adjusted_score"]# Add formatted breakdown rowbreakdown_data.append({"Category": label,"Score": f"{score}%","Matching Skills": ", ".join(details["matching_keywords"][:3]) if details["matching_keywords"] else "None detected"})# Convert to DataFrame and display541 unmodified lines542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587541 unmodified linesst.info(f"Summary generated in {summarization_time:.2f} seconds")# Step 3: Generate Google fit assessmentstatus_text.text("Step 3/3: Evaluating Google fit...")assessment, match_percentage, category_details, assessment_time = analyze_google_fit(summary)progress_bar.progress(100)# Clear status messagesstatus_text.empty()# Display Google fit resultsst.subheader("Google Fit Assessment")# Display match percentage with appropriate color and emoji - with more realistic thresholdsif match_percentage >= 85:st.success(f"**Overall Google Match Score:** {match_percentage}% π")elif match_percentage >= 70:st.success(f"**Overall Google Match Score:** {match_percentage}% β ")elif match_percentage >= 50:st.warning(f"**Overall Google Match Score:** {match_percentage}% β οΈ")else:st.error(f"**Overall Google Match Score:** {match_percentage}% π")# NEW ADDITION: Add detailed score breakdownst.markdown("### Score Breakdown")# Create a neat table with category scoresbreakdown_data = []for category, details in category_details.items():label = {"technical_skills": "Technical Programming Skills","advanced_tech": "Advanced Technology Knowledge","problem_solving": "Problem Solving Abilities","innovation": "Innovation Mindset","soft_skills": "Collaboration & Leadership"}[category]# Create a visual indicator for the scorescore = details["adjusted_score"]# Add formatted breakdown rowbreakdown_data.append({"Category": label,"Score": f"{score}%","Matching Skills": ", ".join(details["matching_keywords"][:3]) if details["matching_keywords"] else "None detected"})# Convert to DataFrame and display
app.py+29-29