Spaces:
Paused
Paused
Tao Wu commited on
Commit ·
bd1bcae
1
Parent(s): 947cadf
update exp prompt
Browse files- app/app.py +2 -3
app/app.py
CHANGED
|
@@ -47,9 +47,8 @@ def retrieve_documents(occupation,skills):
|
|
| 47 |
doc_skill = doc.metadata.get('skills', '')
|
| 48 |
input_text = f"target occupation: {llama_query}\n Recommended course: name: {doc_name}, learning objectives: {doc_skill[:2000]}"
|
| 49 |
prompt = generate_prompt_exp(input_text)
|
| 50 |
-
output = generate_exp(prompt)
|
| 51 |
-
|
| 52 |
-
batch_output.append(output)
|
| 53 |
|
| 54 |
|
| 55 |
output.append(f"<b>Zielberuf:</b> {target_occupation_name}")
|
|
|
|
| 47 |
doc_skill = doc.metadata.get('skills', '')
|
| 48 |
input_text = f"target occupation: {llama_query}\n Recommended course: name: {doc_name}, learning objectives: {doc_skill[:2000]}"
|
| 49 |
prompt = generate_prompt_exp(input_text)
|
| 50 |
+
output = generate_exp([prompt])
|
| 51 |
+
batch_output.append(output[0])
|
|
|
|
| 52 |
|
| 53 |
|
| 54 |
output.append(f"<b>Zielberuf:</b> {target_occupation_name}")
|