fixed llm_sanitize
Browse files- chains/exercises/runner.py +2 -0
- config/chain_configs.py +1 -1
- main.py +7 -1
chains/exercises/runner.py
CHANGED
|
@@ -3,6 +3,8 @@ import asyncio
|
|
| 3 |
from typing import AsyncGenerator
|
| 4 |
from config.llm_config import llms
|
| 5 |
from config.chain_configs import chain_configs
|
|
|
|
|
|
|
| 6 |
|
| 7 |
async def run_fluster(
|
| 8 |
user_input_text: str,
|
|
|
|
| 3 |
from typing import AsyncGenerator
|
| 4 |
from config.llm_config import llms
|
| 5 |
from config.chain_configs import chain_configs
|
| 6 |
+
from config.templates import template_sanitize_fluster
|
| 7 |
+
|
| 8 |
|
| 9 |
async def run_fluster(
|
| 10 |
user_input_text: str,
|
config/chain_configs.py
CHANGED
|
@@ -75,6 +75,6 @@ chain_configs = {
|
|
| 75 |
"template_refine_fluster": template_refine_fluster,
|
| 76 |
"llm_refine": llms["o1 (high reasoning_effort)"],
|
| 77 |
"template_sanitize": template_sanitize_fluster,
|
| 78 |
-
"llm_sanitize": "GPT-4o
|
| 79 |
},
|
| 80 |
}
|
|
|
|
| 75 |
"template_refine_fluster": template_refine_fluster,
|
| 76 |
"llm_refine": llms["o1 (high reasoning_effort)"],
|
| 77 |
"template_sanitize": template_sanitize_fluster,
|
| 78 |
+
"llm_sanitize": llms["GPT-4o (zero temp)"],
|
| 79 |
},
|
| 80 |
}
|
main.py
CHANGED
|
@@ -99,7 +99,13 @@ with gr.Blocks() as interface:
|
|
| 99 |
[fluster_box_0, fluster_box_1, fluster_box_2, fluster_box_3],
|
| 100 |
) = build_write_fluster_tab()
|
| 101 |
|
| 102 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
with gr.Tab("", visible=True):
|
| 104 |
pass
|
| 105 |
with gr.Tab("", visible=True):
|
|
|
|
| 99 |
[fluster_box_0, fluster_box_1, fluster_box_2, fluster_box_3],
|
| 100 |
) = build_write_fluster_tab()
|
| 101 |
|
| 102 |
+
# 6 Empty separators (somehow scale=6 doesn't work)
|
| 103 |
+
with gr.Tab("", visible=True):
|
| 104 |
+
pass
|
| 105 |
+
with gr.Tab("", visible=True):
|
| 106 |
+
pass
|
| 107 |
+
with gr.Tab("", visible=True):
|
| 108 |
+
pass
|
| 109 |
with gr.Tab("", visible=True):
|
| 110 |
pass
|
| 111 |
with gr.Tab("", visible=True):
|