shdiwhsai commited on
Commit
b5caa7d
·
verified ·
1 Parent(s): 9dad023

Upload streamlit_app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. streamlit_app.py +5 -2
streamlit_app.py CHANGED
@@ -13,8 +13,11 @@ import os
13
  from utils import load_job_data, preprocess_text, get_top_skills, get_job_recommendations
14
 
15
  # Download NLTK resources
16
- nltk.download('punkt')
17
- nltk.download('stopwords')
 
 
 
18
 
19
  # Page configuration
20
  st.set_page_config(
 
13
  from utils import load_job_data, preprocess_text, get_top_skills, get_job_recommendations
14
 
15
  # Download NLTK resources
16
+ try:
17
+ nltk.download('punkt')
18
+ nltk.download('stopwords')
19
+ except:
20
+ pass # In case downloads fail, continue with what's available
21
 
22
  # Page configuration
23
  st.set_page_config(