Spaces:
Runtime error
Runtime error
Tao Wu commited on
Commit ·
4486afa
1
Parent(s): c233057
init
Browse files- app/app.py +2 -2
app/app.py
CHANGED
|
@@ -62,8 +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 |
-
batch_output.append(
|
| 67 |
|
| 68 |
# Evaluate the current batch of prompts
|
| 69 |
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 |
+
generate_ouput = generate_exp(prompt)
|
| 66 |
+
batch_output.append(generate_ouput)
|
| 67 |
|
| 68 |
# Evaluate the current batch of prompts
|
| 69 |
output.append(f"<b>Zielberuf:</b> {target_occupation_name}")
|