Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|