Spaces:
Paused
Paused
Tao Wu
commited on
Commit
·
121b129
1
Parent(s):
7d5306a
test exp
Browse files- app/app.py +2 -1
- app/config.py +1 -1
app/app.py
CHANGED
@@ -51,6 +51,7 @@ def retrieve_documents(occupation,skills):
|
|
51 |
|
52 |
# Evaluate the current batch of prompts
|
53 |
batch_output = generate_exp(batch_prompts)
|
|
|
54 |
output.append(f"<b>Qualifikationslücke:</b> {skill_query}")
|
55 |
output.append(f"<b>Empfohlene Kurse:</b>")
|
56 |
for i in range(5):
|
@@ -195,7 +196,7 @@ if __name__ == "__main__":
|
|
195 |
with gr.Blocks(title="MyEduLife Kursempfehlungssystem") as demo:
|
196 |
with gr.Row():
|
197 |
with gr.Column():
|
198 |
-
occupation_dropdown = gr.Dropdown(list(occupations.keys()), label="
|
199 |
currentskill_dropdown = gr.Dropdown([],label="aktuelle Fähigkeiten", multiselect=True,info='Bitte wählen Sie die Fähigkeiten aus, die Sie derzeit besitzen')
|
200 |
sb_btn = gr.Button("Absenden")
|
201 |
skillgap_dropdown = gr.Dropdown([],label="Fähigkeiten", multiselect=True,info='Bitte wählen Sie die Fähigkeiten aus, die Sie lernen möchten.')
|
|
|
51 |
|
52 |
# Evaluate the current batch of prompts
|
53 |
batch_output = generate_exp(batch_prompts)
|
54 |
+
output.append(f"<b>Zielberuf:</b> {target_occupation_name}")
|
55 |
output.append(f"<b>Qualifikationslücke:</b> {skill_query}")
|
56 |
output.append(f"<b>Empfohlene Kurse:</b>")
|
57 |
for i in range(5):
|
|
|
196 |
with gr.Blocks(title="MyEduLife Kursempfehlungssystem") as demo:
|
197 |
with gr.Row():
|
198 |
with gr.Column():
|
199 |
+
occupation_dropdown = gr.Dropdown(list(occupations.keys()), label="Zielberuf",info='Bitte wählen Sie Ihren Zielberuf aus.')
|
200 |
currentskill_dropdown = gr.Dropdown([],label="aktuelle Fähigkeiten", multiselect=True,info='Bitte wählen Sie die Fähigkeiten aus, die Sie derzeit besitzen')
|
201 |
sb_btn = gr.Button("Absenden")
|
202 |
skillgap_dropdown = gr.Dropdown([],label="Fähigkeiten", multiselect=True,info='Bitte wählen Sie die Fähigkeiten aus, die Sie lernen möchten.')
|
app/config.py
CHANGED
@@ -22,5 +22,5 @@ PERSIST_DIRECTORY = os.getenv('PERSIST_DIRECTORY', "/app/data/EduGBERT_cos_escoa
|
|
22 |
CSV_FILE_PATH = os.getenv('CSV_FILE_PATH', '/app/data/occupations_de.csv')
|
23 |
|
24 |
REC_LORA_MODEL = os.getenv('REC_LORA_MODEL', 'wt3639/Llama-3-8B-Instruct_CourseRec_lora')
|
25 |
-
EXP_LORA_MODEL = os.getenv('EXP_LORA_MODEL', 'wt3639/
|
26 |
LLM_MODEL = os.getenv('LLM_MODEL', 'meta-llama/Meta-Llama-3-8B-Instruct')
|
|
|
22 |
CSV_FILE_PATH = os.getenv('CSV_FILE_PATH', '/app/data/occupations_de.csv')
|
23 |
|
24 |
REC_LORA_MODEL = os.getenv('REC_LORA_MODEL', 'wt3639/Llama-3-8B-Instruct_CourseRec_lora')
|
25 |
+
EXP_LORA_MODEL = os.getenv('EXP_LORA_MODEL', 'wt3639/Llama-3-8B-Instruct_RecExp_lora')
|
26 |
LLM_MODEL = os.getenv('LLM_MODEL', 'meta-llama/Meta-Llama-3-8B-Instruct')
|