Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -102,6 +102,11 @@ user_location = st.text_input('Enter your location:')
|
|
| 102 |
if st.button('Get Recommendations'):
|
| 103 |
if user_skills and user_location:
|
| 104 |
recommended_jobs = prepare_and_recommend(sample_data, user_skills, user_location)
|
| 105 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
else:
|
| 107 |
-
st.warning('Please enter your skills and location.')
|
|
|
|
| 102 |
if st.button('Get Recommendations'):
|
| 103 |
if user_skills and user_location:
|
| 104 |
recommended_jobs = prepare_and_recommend(sample_data, user_skills, user_location)
|
| 105 |
+
if recommended_jobs.empty:
|
| 106 |
+
st.warning('Tidak ditemukan pekerjaan yang sesuai dengan keterampilan dan lokasi Anda.')
|
| 107 |
+
elif recommended_jobs['final score'].max() < 0.02:
|
| 108 |
+
st.warning('Maaf, hasil rekomendasi mungkin kurang relevan dengan keterampilan dan lokasi Anda. Silakan coba mengubah keterampilan atau lokasi Anda.')
|
| 109 |
+
else:
|
| 110 |
+
st.dataframe(recommended_jobs)
|
| 111 |
else:
|
| 112 |
+
st.warning('Please enter your skills and location.')
|