ak0601 commited on
Commit
f6f6009
·
verified ·
1 Parent(s): 9a10c04

Update src/app_job_copy_1.py

Browse files
Files changed (1) hide show
  1. src/app_job_copy_1.py +4 -4
src/app_job_copy_1.py CHANGED
@@ -247,7 +247,7 @@ def process_candidates_for_job(job_row, candidates_df, llm_chain=None):
247
  "Locations": job_row.get("Locations", ""), "Tech_Stack": job_row["Tech Stack"], "Industry": job_row.get("Industry", "")
248
  }
249
 
250
- with st.spinner("Finding matching candidates based on tech stack..."):
251
  matching_candidates = get_matching_candidates(job_row["Tech Stack"], candidates_df)
252
 
253
  if not matching_candidates:
@@ -363,7 +363,7 @@ def main():
363
 
364
  with st.expander("Preview uploaded data"):
365
  st.subheader("Jobs Data Preview"); st.dataframe(jobs_df.head(3))
366
- st.subheader("Candidates Data Preview"); st.dataframe(candidates_df.head(3))
367
 
368
  # Column mapping (simplified, ensure your CSVs have these exact names or adjust)
369
  # candidates_df = candidates_df.rename(columns={...}) # Add if needed
@@ -375,7 +375,7 @@ def main():
375
  st.divider()
376
 
377
  def display_job_selection(jobs_df, candidates_df, sh): # 'sh' is the Google Sheets client
378
- st.subheader("Select a job to view potential matches")
379
  job_options = [f"{row['Role']} at {row['Company']}" for _, row in jobs_df.iterrows()]
380
 
381
  if not job_options:
@@ -444,7 +444,7 @@ def display_job_selection(jobs_df, candidates_df, sh): # 'sh' is the Google Shee
444
 
445
  # --- Actual Processing Logic ---
446
  if st.session_state.get(job_is_processing_key, False):
447
- with st.spinner(f"Processing candidates for {job_row['Role']} at {job_row['Company']}..."):
448
  # Assuming process_candidates_for_job is defined and handles stop_processing_flag
449
  processed_candidates_list = process_candidates_for_job(
450
  job_row, candidates_df, st.session_state.llm_chain # Assuming llm_chain from session_state
 
247
  "Locations": job_row.get("Locations", ""), "Tech_Stack": job_row["Tech Stack"], "Industry": job_row.get("Industry", "")
248
  }
249
 
250
+ with st.spinner("Sourcing candidates based on tech stack..."):
251
  matching_candidates = get_matching_candidates(job_row["Tech Stack"], candidates_df)
252
 
253
  if not matching_candidates:
 
363
 
364
  with st.expander("Preview uploaded data"):
365
  st.subheader("Jobs Data Preview"); st.dataframe(jobs_df.head(3))
366
+ # st.subheader("Candidates Data Preview"); st.dataframe(candidates_df.head(3))
367
 
368
  # Column mapping (simplified, ensure your CSVs have these exact names or adjust)
369
  # candidates_df = candidates_df.rename(columns={...}) # Add if needed
 
375
  st.divider()
376
 
377
  def display_job_selection(jobs_df, candidates_df, sh): # 'sh' is the Google Sheets client
378
+ st.subheader("Select a job to Source for potential matches")
379
  job_options = [f"{row['Role']} at {row['Company']}" for _, row in jobs_df.iterrows()]
380
 
381
  if not job_options:
 
444
 
445
  # --- Actual Processing Logic ---
446
  if st.session_state.get(job_is_processing_key, False):
447
+ with st.spinner(f"Sourcing candidates for {job_row['Role']} at {job_row['Company']}..."):
448
  # Assuming process_candidates_for_job is defined and handles stop_processing_flag
449
  processed_candidates_list = process_candidates_for_job(
450
  job_row, candidates_df, st.session_state.llm_chain # Assuming llm_chain from session_state