Spaces:
Sleeping
Sleeping
Commit ·
7cd2a55
1
Parent(s): aa11860
refactor(ui): drop v16 legacy tab
Browse filesKeep only the v24 (new) feedback tab and the title proofreading sandbox.
v16 prompts/pipelines stay in the repo but are no longer surfaced in
the UI. _v16_prompt resolution removed from app.py.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2 unmodified lines345678918 unmodified lines282930313233343 unmodified lines383940414243448 unmodified lines53545556575859606162636465665 unmodified lines727374757677782 unmodified linesTabs:- v24 (new): solar-pro3 with FT + self-consistency × 2 + tool-callingjudge. paragraph F1 47.04 (vs solar-pro2 prod_251231 mean 44.86).- v16 (legacy): solar-pro3 with the 260408_v16 single-pass pipeline.- 제목 교열 (sandbox): solar-pro2 vs solar-pro3 side-by-side comparisonfor newspaper title proofreading (default prompt hidden in UI)."""18 unmodified linesvocabulary = load_vocabulary(_vocab_path)prompt_choices = list_prompts() or ["dev_260408_v16"]def _default_prompt(preferred_prefix: str, fallback: str) -> str:3 unmodified linesreturn fallback_v16_prompt = _default_prompt("dev_260408_v16", prompt_choices[-1])_v24_prompt = _default_prompt("dev_260429_v24", "dev_260429_v24")with gr.Blocks(title="Chosun 교정교열 데모") as demo:8 unmodified lineselem_id_prefix="v24",)with gr.Tab("v16 (legacy · 260408)"):build_feedback_tab(client=client,vocabulary=vocabulary,pipeline_config=("260408_v16", "solar-pro3", _v16_prompt),elem_id_prefix="v16",)with gr.Tab("제목 교열 (sandbox)"):build_title_proofread_tab(client=client)5 unmodified linesdocument.addEventListener('keydown', (e) => {if (!((e.metaKey || e.ctrlKey) && e.key === 'Enter')) return;// Pick the run button on the *visible* tab (others' buttons are hidden).const ids = ['title-proofread-run-btn', 'v24-run-btn', 'v16-run-btn'];for (const id of ids) {const root = document.getElementById(id);if (!root) continue;2 unmodified lines34567818 unmodified lines272829303132333 unmodified lines3738394041428 unmodified lines5152535455565 unmodified lines626364656667682 unmodified linesTabs:- v24 (new): solar-pro3 with FT + self-consistency × 2 + tool-callingjudge. paragraph F1 47.04 (vs solar-pro2 prod_251231 mean 44.86).- 제목 교열 (sandbox): solar-pro2 vs solar-pro3 side-by-side comparisonfor newspaper title proofreading (default prompt hidden in UI)."""18 unmodified linesvocabulary = load_vocabulary(_vocab_path)prompt_choices = list_prompts() or ["dev_260429_v24"]def _default_prompt(preferred_prefix: str, fallback: str) -> str:3 unmodified linesreturn fallback_v24_prompt = _default_prompt("dev_260429_v24", "dev_260429_v24")with gr.Blocks(title="Chosun 교정교열 데모") as demo:8 unmodified lineselem_id_prefix="v24",)with gr.Tab("제목 교열 (sandbox)"):build_title_proofread_tab(client=client)5 unmodified linesdocument.addEventListener('keydown', (e) => {if (!((e.metaKey || e.ctrlKey) && e.key === 'Enter')) return;// Pick the run button on the *visible* tab (others' buttons are hidden).const ids = ['title-proofread-run-btn', 'v24-run-btn'];for (const id of ids) {const root = document.getElementById(id);if (!root) continue;
app.py+2-12