Spaces:
Runtime error
Runtime error
Upload streamlit_app.py with huggingface_hub
Browse files- 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 |
-
|
| 17 |
-
nltk.download('
|
|
|
|
|
|
|
|
|
|
| 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(
|