Elvan Selvano commited on
Commit
b23b643
β€’
1 Parent(s): 85a9275

Add badges

Browse files
Files changed (1) hide show
  1. app.py +18 -13
app.py CHANGED
@@ -81,10 +81,15 @@ def show_aggrid_table(result: pd.DataFrame):
81
  def main():
82
  """Main Function"""
83
  st.title('@ecommurz Talent Search Engine')
84
- st.markdown("![PyTorch](https://img.shields.io/badge/PyTorch-%23EE4C2C.svg?style=for-the-badge&logo=PyTorch&logoColor=white")
85
- st.markdown("![Maintainer](https://img.shields.io/badge/maintainer-temandata-blue")
86
- st.markdown("[![Open Source? Yes!](https://badgen.net/badge/Open%20Source%20%3F/Yes%21/blue?icon=github)](https://github.com/teman-data/ecommurz-talent-search-engine)")
87
- st.markdown("![visitor badge](https://visitor-badge.glitch.me/badge?page_id=temandata_ecommurz-talent-search-engine")
 
 
 
 
 
88
  st.write('This app lets you search and sort talent by job title or relevant job descriptions from ecommurz talent list in real-time.')
89
 
90
  columns = ['Timestamp', 'Full Name', 'Company', 'Previous Role',
@@ -102,17 +107,17 @@ def main():
102
  data['LinkedIn Profile'])
103
 
104
 
105
- model = load_model()
106
- corpus_embeddings = create_embedding(model, data, 'Previous Role')
107
 
108
- job_title = st.text_input('Insert the job title below:', '')
109
- submitted = st.button('Submit')
110
 
111
- if submitted:
112
- st.info(f'Showing results for {job_title}')
113
- result = get_similarity_score(model, data, job_title, corpus_embeddings)
114
- result = result[columns]
115
- show_aggrid_table(result)
116
 
117
  if __name__ == '__main__':
118
  main()
 
81
  def main():
82
  """Main Function"""
83
  st.title('@ecommurz Talent Search Engine')
84
+ st.markdown('''
85
+ <div align="left">
86
+
87
+ [![Maintainer](https://img.shields.io/badge/maintainer-temandata-blue)](https://temandata.com/)
88
+ [![Open Source? Yes!](https://badgen.net/badge/Open%20Source%20%3F/Yes%21/blue?icon=github)](https://github.com/teman-data/ecommurz-talent-search-engine)
89
+ ![visitor badge](https://visitor-badge.glitch.me/badge?page_id=temandata_ecommurz-talent-search-engine)
90
+
91
+ </div>
92
+ ''', unsafe_allow_html=True)
93
  st.write('This app lets you search and sort talent by job title or relevant job descriptions from ecommurz talent list in real-time.')
94
 
95
  columns = ['Timestamp', 'Full Name', 'Company', 'Previous Role',
 
107
  data['LinkedIn Profile'])
108
 
109
 
110
+ # model = load_model()
111
+ # corpus_embeddings = create_embedding(model, data, 'Previous Role')
112
 
113
+ # job_title = st.text_input('Insert the job title below:', '')
114
+ # submitted = st.button('Submit')
115
 
116
+ # if submitted:
117
+ # st.info(f'Showing results for {job_title}')
118
+ # result = get_similarity_score(model, data, job_title, corpus_embeddings)
119
+ # result = result[columns]
120
+ # show_aggrid_table(result)
121
 
122
  if __name__ == '__main__':
123
  main()