Spaces:
Running
Running
Remove duplicate headers and Back buttons from mode interfaces
Browse files- Remove duplicate headers from enhanced_verification_ui.py
- Remove duplicate headers from manual_input_interface.py
- Remove duplicate headers from file_upload_interface.py
- Headers and Back buttons are now only in enhanced_verification_interface.py
- Fixes duplicate UI elements issue
src/interface/enhanced_verification_ui.py
CHANGED
|
@@ -385,13 +385,7 @@ class EnhancedVerificationUIComponents:
|
|
| 385 |
controller = EnhancedDatasetInterfaceController()
|
| 386 |
|
| 387 |
with gr.Blocks() as enhanced_dataset_interface:
|
| 388 |
-
|
| 389 |
-
gr.Markdown("Select and customize test datasets for verification. You can edit existing datasets or create new test cases.")
|
| 390 |
-
|
| 391 |
-
# Back to mode selection
|
| 392 |
-
back_to_modes_btn = StandardizedComponents.create_navigation_button("Back to Mode Selection")
|
| 393 |
-
|
| 394 |
-
# Application state
|
| 395 |
current_dataset_state = gr.State(value=None)
|
| 396 |
verification_session_state = gr.State(value=None)
|
| 397 |
|
|
|
|
| 385 |
controller = EnhancedDatasetInterfaceController()
|
| 386 |
|
| 387 |
with gr.Blocks() as enhanced_dataset_interface:
|
| 388 |
+
# Application state (headers and back button are in parent interface)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 389 |
current_dataset_state = gr.State(value=None)
|
| 390 |
verification_session_state = gr.State(value=None)
|
| 391 |
|
src/interface/file_upload_interface.py
CHANGED
|
@@ -589,11 +589,7 @@ def create_file_upload_interface() -> gr.Blocks:
|
|
| 589 |
controller = FileUploadInterfaceController()
|
| 590 |
|
| 591 |
with gr.Blocks() as file_upload_interface:
|
| 592 |
-
|
| 593 |
-
gr.Markdown("Upload CSV or XLSX files containing test messages for batch processing and verification.")
|
| 594 |
-
|
| 595 |
-
# Back to mode selection
|
| 596 |
-
back_to_modes_btn = StandardizedComponents.create_navigation_button("Back to Mode Selection")
|
| 597 |
|
| 598 |
# Application state
|
| 599 |
current_file_result_state = gr.State(value=None)
|
|
|
|
| 589 |
controller = FileUploadInterfaceController()
|
| 590 |
|
| 591 |
with gr.Blocks() as file_upload_interface:
|
| 592 |
+
# Headers and back button are in parent interface
|
|
|
|
|
|
|
|
|
|
|
|
|
| 593 |
|
| 594 |
# Application state
|
| 595 |
current_file_result_state = gr.State(value=None)
|
src/interface/manual_input_interface.py
CHANGED
|
@@ -478,14 +478,7 @@ def create_manual_input_interface() -> gr.Blocks:
|
|
| 478 |
controller = ManualInputController()
|
| 479 |
|
| 480 |
with gr.Blocks() as manual_input_interface:
|
| 481 |
-
|
| 482 |
-
gr.Markdown("""
|
| 483 |
-
Enter individual messages for immediate classification and verification.
|
| 484 |
-
Perfect for testing specific scenarios or exploring edge cases in real-time.
|
| 485 |
-
""")
|
| 486 |
-
|
| 487 |
-
# Back to mode selection
|
| 488 |
-
back_to_modes_btn = StandardizedComponents.create_navigation_button("Back to Mode Selection")
|
| 489 |
|
| 490 |
# Session setup section
|
| 491 |
with gr.Row():
|
|
|
|
| 478 |
controller = ManualInputController()
|
| 479 |
|
| 480 |
with gr.Blocks() as manual_input_interface:
|
| 481 |
+
# Headers and back button are in parent interface
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 482 |
|
| 483 |
# Session setup section
|
| 484 |
with gr.Row():
|