BtB-ExpC commited on
Commit
d0c0916
·
1 Parent(s): 56e7395

template keyError

Browse files
app/ui/learning_objectives_tab.py CHANGED
@@ -18,10 +18,12 @@ def build_learning_objectives_tab():
18
  # 2 dropdowns for the user-chosen LLMs:
19
  model_choice_1 = gr.Dropdown(
20
  choices=list(llms.keys()),
 
21
  label="LLM 1"
22
  )
23
  model_choice_2 = gr.Dropdown(
24
  choices=list(llms.keys()),
 
25
  label="LLM 2"
26
  )
27
  text_format = gr.Dropdown(
 
18
  # 2 dropdowns for the user-chosen LLMs:
19
  model_choice_1 = gr.Dropdown(
20
  choices=list(llms.keys()),
21
+ value="o1",
22
  label="LLM 1"
23
  )
24
  model_choice_2 = gr.Dropdown(
25
  choices=list(llms.keys()),
26
+ value="o3-mini (high reasoning_effort)",
27
  label="LLM 2"
28
  )
29
  text_format = gr.Dropdown(
chains/learning_objectives_generator/runner.py CHANGED
@@ -21,7 +21,7 @@ async def run_learning_objectives_generator(
21
  config = chain_configs["learning_objectives"] # you define this in chain_configs.py
22
  standardized = await standardize_studytext(
23
  user_input_text, text_format,
24
- config["template_studytext_standardize"],
25
  config["llm_standardize_studytext"]
26
  )
27
 
 
21
  config = chain_configs["learning_objectives"] # you define this in chain_configs.py
22
  standardized = await standardize_studytext(
23
  user_input_text, text_format,
24
+ config["template_standardize"],
25
  config["llm_standardize_studytext"]
26
  )
27
 
config/chain_configs.py CHANGED
@@ -50,7 +50,7 @@ chain_configs = {
50
  },
51
  "learning_objectives": {
52
  "class": LearningObjectivesChain,
53
- "template_standardize_studytext": template_standardize_studytext,
54
  "llm_standardize": llms["GPT-4o-mini (zero temp)"], # Always fixed
55
  "template_gen_prompt_a": template_gen_prompt_a,
56
  "template_gen_prompt_b": template_gen_prompt_b,
 
50
  },
51
  "learning_objectives": {
52
  "class": LearningObjectivesChain,
53
+ "template_standardize": template_standardize_studytext,
54
  "llm_standardize": llms["GPT-4o-mini (zero temp)"], # Always fixed
55
  "template_gen_prompt_a": template_gen_prompt_a,
56
  "template_gen_prompt_b": template_gen_prompt_b,