Spaces:
Sleeping
Sleeping
feat: Refactor correction section visibility handling in verification UI
Browse files
src/interface/conversation_verification_ui.py
CHANGED
|
@@ -76,8 +76,7 @@ class VerificationInterface:
|
|
| 76 |
incorrect_btn = gr.Button("❌ Incorrect", variant="secondary", scale=1)
|
| 77 |
|
| 78 |
# Correction interface (initially hidden)
|
| 79 |
-
|
| 80 |
-
with correction_section:
|
| 81 |
gr.Markdown("### Select Correct Classification:")
|
| 82 |
correction_radio = gr.Radio(
|
| 83 |
choices=["GREEN", "YELLOW", "RED"],
|
|
@@ -157,7 +156,7 @@ class VerificationInterface:
|
|
| 157 |
)
|
| 158 |
|
| 159 |
def show_correction_section():
|
| 160 |
-
return gr.
|
| 161 |
|
| 162 |
incorrect_btn.click(
|
| 163 |
fn=show_correction_section,
|
|
|
|
| 76 |
incorrect_btn = gr.Button("❌ Incorrect", variant="secondary", scale=1)
|
| 77 |
|
| 78 |
# Correction interface (initially hidden)
|
| 79 |
+
with gr.Column(visible=False) as correction_section:
|
|
|
|
| 80 |
gr.Markdown("### Select Correct Classification:")
|
| 81 |
correction_radio = gr.Radio(
|
| 82 |
choices=["GREEN", "YELLOW", "RED"],
|
|
|
|
| 156 |
)
|
| 157 |
|
| 158 |
def show_correction_section():
|
| 159 |
+
return gr.update(visible=True)
|
| 160 |
|
| 161 |
incorrect_btn.click(
|
| 162 |
fn=show_correction_section,
|