saherPervaiz commited on
Commit
769b468
Β·
verified Β·
1 Parent(s): c045a8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -45,12 +45,13 @@ def match_jd(jd_text):
45
  matched_names = [cv_names[i] for i in top_k_indices]
46
  matched_texts = [cv_texts[i] for i in top_k_indices]
47
 
48
- summary = summarize_match(jd_text, matched_names)
49
  return f"βœ… Top Matches:\n{matched_names}\n\nπŸ“ Summary:\n{summary}"
50
 
51
  except Exception as e:
52
  return f"❌ Error during matching: {e}"
53
 
 
54
  def clear_data():
55
  global cv_texts, cv_names, cv_vectors, faiss_index
56
  cv_texts, cv_names, cv_vectors, faiss_index = [], [], [], None
 
45
  matched_names = [cv_names[i] for i in top_k_indices]
46
  matched_texts = [cv_texts[i] for i in top_k_indices]
47
 
48
+ summary = summarize_match(jd_text, matched_names) # βœ… fixed this line
49
  return f"βœ… Top Matches:\n{matched_names}\n\nπŸ“ Summary:\n{summary}"
50
 
51
  except Exception as e:
52
  return f"❌ Error during matching: {e}"
53
 
54
+
55
  def clear_data():
56
  global cv_texts, cv_names, cv_vectors, faiss_index
57
  cv_texts, cv_names, cv_vectors, faiss_index = [], [], [], None