Spaces:
Sleeping
Sleeping
Tao Wu
commited on
Commit
·
c233057
1
Parent(s):
b133e11
init
Browse files- app/app.py +2 -1
app/app.py
CHANGED
@@ -62,7 +62,8 @@ def retrieve_documents(occupation,skills):
|
|
62 |
doc_skill = doc.metadata.get('skills', '')
|
63 |
input_text = f"target occupation: {llama_query}\n Recommended course: name: {doc_name}, learning objectives: {doc_skill[:2000]}"
|
64 |
prompt = generate_prompt_exp(input_text)
|
65 |
-
|
|
|
66 |
|
67 |
# Evaluate the current batch of prompts
|
68 |
output.append(f"<b>Zielberuf:</b> {target_occupation_name}")
|
|
|
62 |
doc_skill = doc.metadata.get('skills', '')
|
63 |
input_text = f"target occupation: {llama_query}\n Recommended course: name: {doc_name}, learning objectives: {doc_skill[:2000]}"
|
64 |
prompt = generate_prompt_exp(input_text)
|
65 |
+
output = generate_exp(prompt)
|
66 |
+
batch_output.append(output)
|
67 |
|
68 |
# Evaluate the current batch of prompts
|
69 |
output.append(f"<b>Zielberuf:</b> {target_occupation_name}")
|