NikosKprl commited on
Commit
a2b68be
·
verified ·
1 Parent(s): 5c5e0c3

Update ✨Entity Linking Application✨.py

Browse files
✨Entity Linking Application✨.py CHANGED
@@ -456,6 +456,8 @@ def main_cli():
456
  lista_1.append({k: emb_mean})
457
 
458
  sorted_data = sorted(lista_1, key=lambda x: list(x.values())[0], reverse=True)
 
 
459
  st.write(f"✅ Applined Candidate Selection module (4/5) [{number}/{len(list_with_full_names)}]")
460
  with st.spinner(f"Applying Candidate Matching module... (5/5) [{number}/{len(list_with_full_names)}]"):
461
  if sorted_data:
@@ -506,8 +508,7 @@ def main_cli():
506
  ETA = time.strftime("%H:%M:%S", time.gmtime(execution_time))
507
  st.write(f"⌛ Execution time: {ETA}")
508
 
509
- if 'run_button' in st.session_state and st.session_state.run_button == False:
510
- st.session_state.running = False
511
 
512
  # i think this part can be removed now
513
  folder_path = "qids_folder"
 
456
  lista_1.append({k: emb_mean})
457
 
458
  sorted_data = sorted(lista_1, key=lambda x: list(x.values())[0], reverse=True)
459
+
460
+ my_bar.empty()
461
  st.write(f"✅ Applined Candidate Selection module (4/5) [{number}/{len(list_with_full_names)}]")
462
  with st.spinner(f"Applying Candidate Matching module... (5/5) [{number}/{len(list_with_full_names)}]"):
463
  if sorted_data:
 
508
  ETA = time.strftime("%H:%M:%S", time.gmtime(execution_time))
509
  st.write(f"⌛ Execution time: {ETA}")
510
 
511
+ st.session_state.running = True
 
512
 
513
  # i think this part can be removed now
514
  folder_path = "qids_folder"