Spaces:
Paused
Paused
Tao Wu
commited on
Commit
·
a5dc95f
1
Parent(s):
366d3da
add skills query
Browse files- app/app.py +1 -1
app/app.py
CHANGED
@@ -52,7 +52,7 @@ def retrieve_documents(occupation,skills):
|
|
52 |
seen_course_ids.add(course_id)
|
53 |
|
54 |
partial_compare_docs = functools.partial(compare_docs_with_context, target_occupation_name=target_occupation_name, target_occupation_dsp=target_occupation_dsp,skill_gap = skill_query)
|
55 |
-
sorted_docs = sorted(
|
56 |
|
57 |
|
58 |
batch_prompts = []
|
|
|
52 |
seen_course_ids.add(course_id)
|
53 |
|
54 |
partial_compare_docs = functools.partial(compare_docs_with_context, target_occupation_name=target_occupation_name, target_occupation_dsp=target_occupation_dsp,skill_gap = skill_query)
|
55 |
+
sorted_docs = sorted(candidate_doc_unique, key=functools.cmp_to_key(partial_compare_docs), reverse=True)
|
56 |
|
57 |
|
58 |
batch_prompts = []
|