Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,9 +77,10 @@ def home_frm():
|
|
| 77 |
# Get recommendations
|
| 78 |
if hard_skills and soft_skills:
|
| 79 |
jobs = recommendation(applicants, companies, similarity)
|
|
|
|
| 80 |
if jobs:
|
| 81 |
st.write("Recommended Jobs:")
|
| 82 |
-
for idx, job in
|
| 83 |
with st.expander(f"{idx+1}. {job[idx]}"):
|
| 84 |
st.button("Export Recommendations", on_click=export_recommendations, args=(jobs,), key='export')
|
| 85 |
else:
|
|
|
|
| 77 |
# Get recommendations
|
| 78 |
if hard_skills and soft_skills:
|
| 79 |
jobs = recommendation(applicants, companies, similarity)
|
| 80 |
+
jobs = jobs.tolist()
|
| 81 |
if jobs:
|
| 82 |
st.write("Recommended Jobs:")
|
| 83 |
+
for idx, job in enumerate(jobs):
|
| 84 |
with st.expander(f"{idx+1}. {job[idx]}"):
|
| 85 |
st.button("Export Recommendations", on_click=export_recommendations, args=(jobs,), key='export')
|
| 86 |
else:
|