positional arguments distractors button click fixed
Browse files- app.py +9 -1
- config/llm_config.py +4 -2
app.py
CHANGED
|
@@ -369,13 +369,21 @@ with gr.Blocks() as interface:
|
|
| 369 |
distractors_button.click(
|
| 370 |
fn=run_distractors,
|
| 371 |
inputs=[
|
|
|
|
| 372 |
distractors_input,
|
|
|
|
| 373 |
model_choice_distractors_1,
|
|
|
|
| 374 |
model_choice_distractors_2,
|
|
|
|
|
|
|
|
|
|
| 375 |
exercise_format_distractors,
|
|
|
|
| 376 |
sampling_count_distractors,
|
|
|
|
| 377 |
intermediate_distractors_specification,
|
| 378 |
-
|
| 379 |
final_distractors_specification,
|
| 380 |
],
|
| 381 |
outputs=[
|
|
|
|
| 369 |
distractors_button.click(
|
| 370 |
fn=run_distractors,
|
| 371 |
inputs=[
|
| 372 |
+
# 1) user_query
|
| 373 |
distractors_input,
|
| 374 |
+
# 2) model_choice_distractors_1
|
| 375 |
model_choice_distractors_1,
|
| 376 |
+
# 3) model_choice_distractors_2
|
| 377 |
model_choice_distractors_2,
|
| 378 |
+
# 4) model_choice_distractors_3
|
| 379 |
+
model_choice_distractors_3,
|
| 380 |
+
# 5) exercise_format_distractors
|
| 381 |
exercise_format_distractors,
|
| 382 |
+
# 6) sampling_count_distractors
|
| 383 |
sampling_count_distractors,
|
| 384 |
+
# 7) intermediate_distractors_specification
|
| 385 |
intermediate_distractors_specification,
|
| 386 |
+
# 8) final_distractors_specification
|
| 387 |
final_distractors_specification,
|
| 388 |
],
|
| 389 |
outputs=[
|
config/llm_config.py
CHANGED
|
@@ -54,6 +54,8 @@ llms = {
|
|
| 54 |
"Claude 3.5 (low temp)": create_anthropic_llm("claude-3-5-sonnet-latest", LOW),
|
| 55 |
"Claude 3.5 (mid temp)": create_anthropic_llm("claude-3-5-sonnet-latest", MID),
|
| 56 |
"Claude 3.5 (high temp)": create_anthropic_llm("claude-3-5-sonnet-latest", HIGH),
|
|
|
|
|
|
|
| 57 |
|
| 58 |
# DeepSeek
|
| 59 |
"Deepseek R1 (zero temp)🚧": create_anthropic_llm("deepseek-reasoner", ZERO),
|
|
@@ -84,8 +86,8 @@ llms_most_wanted = {
|
|
| 84 |
"Claude 3.5 (low temp)": create_anthropic_llm("claude-3-5-sonnet-latest", LOW),
|
| 85 |
"Claude 3.5 (mid temp)": create_anthropic_llm("claude-3-5-sonnet-latest", MID),
|
| 86 |
"Claude 3.5 (high temp)": create_anthropic_llm("claude-3-5-sonnet-latest", HIGH),
|
| 87 |
-
"Claude 3.5 Haiku (zero temp)": create_anthropic_llm("claude-3-5-haiku-latest",
|
| 88 |
-
"Claude 3.5 Haiku (low temp)": create_anthropic_llm("claude-3-5-haiku-latest",
|
| 89 |
|
| 90 |
# DeepSeek
|
| 91 |
"Deepseek R1 (zero temp)🚧": create_anthropic_llm("deepseek-reasoner", ZERO),
|
|
|
|
| 54 |
"Claude 3.5 (low temp)": create_anthropic_llm("claude-3-5-sonnet-latest", LOW),
|
| 55 |
"Claude 3.5 (mid temp)": create_anthropic_llm("claude-3-5-sonnet-latest", MID),
|
| 56 |
"Claude 3.5 (high temp)": create_anthropic_llm("claude-3-5-sonnet-latest", HIGH),
|
| 57 |
+
"Claude 3.5 Haiku (zero temp)": create_anthropic_llm("claude-3-5-haiku-latest", ZERO),
|
| 58 |
+
"Claude 3.5 Haiku (low temp)": create_anthropic_llm("claude-3-5-haiku-latest", LOW),
|
| 59 |
|
| 60 |
# DeepSeek
|
| 61 |
"Deepseek R1 (zero temp)🚧": create_anthropic_llm("deepseek-reasoner", ZERO),
|
|
|
|
| 86 |
"Claude 3.5 (low temp)": create_anthropic_llm("claude-3-5-sonnet-latest", LOW),
|
| 87 |
"Claude 3.5 (mid temp)": create_anthropic_llm("claude-3-5-sonnet-latest", MID),
|
| 88 |
"Claude 3.5 (high temp)": create_anthropic_llm("claude-3-5-sonnet-latest", HIGH),
|
| 89 |
+
"Claude 3.5 Haiku (zero temp)": create_anthropic_llm("claude-3-5-haiku-latest", ZERO),
|
| 90 |
+
"Claude 3.5 Haiku (low temp)": create_anthropic_llm("claude-3-5-haiku-latest", LOW),
|
| 91 |
|
| 92 |
# DeepSeek
|
| 93 |
"Deepseek R1 (zero temp)🚧": create_anthropic_llm("deepseek-reasoner", ZERO),
|