Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -683,11 +683,6 @@ def validate_configuration():
|
|
| 683 |
return issues
|
| 684 |
|
| 685 |
@st.cache_data
|
| 686 |
-
def load_system_status():
|
| 687 |
-
"""Load and cache system status"""
|
| 688 |
-
issues = validate_configuration()
|
| 689 |
-
return issues
|
| 690 |
-
|
| 691 |
def perform_enhanced_analysis(resume_text, job_description, analysis_type, custom_query=None, force_primary=True):
|
| 692 |
"""Main analysis function with all improvements"""
|
| 693 |
|
|
@@ -796,16 +791,7 @@ st.markdown("""
|
|
| 796 |
</div>
|
| 797 |
""", unsafe_allow_html=True)
|
| 798 |
|
| 799 |
-
# Check system status
|
| 800 |
-
config_issues = load_system_status()
|
| 801 |
|
| 802 |
-
if config_issues:
|
| 803 |
-
with st.expander("⚠️ System Status", expanded=any("❌" in issue for issue in config_issues)):
|
| 804 |
-
for issue in config_issues:
|
| 805 |
-
if "❌" in issue:
|
| 806 |
-
st.error(issue)
|
| 807 |
-
else:
|
| 808 |
-
st.info(issue)
|
| 809 |
|
| 810 |
# Sidebar Configuration
|
| 811 |
with st.sidebar:
|
|
|
|
| 683 |
return issues
|
| 684 |
|
| 685 |
@st.cache_data
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 686 |
def perform_enhanced_analysis(resume_text, job_description, analysis_type, custom_query=None, force_primary=True):
|
| 687 |
"""Main analysis function with all improvements"""
|
| 688 |
|
|
|
|
| 791 |
</div>
|
| 792 |
""", unsafe_allow_html=True)
|
| 793 |
|
|
|
|
|
|
|
| 794 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 795 |
|
| 796 |
# Sidebar Configuration
|
| 797 |
with st.sidebar:
|