Spaces:
Sleeping
Sleeping
Add simple Test Page tab without any logic
Browse files1301 unmodified lines130213031304130513061307130813091310131113 unmodified lines1325132613271324132813291330133157 unmodified lines1389139013911388138913901391139213931394139513921393139413951396370 unmodified lines1767176817691772177017711772177517761777177817791780178117731774177517761301 unmodified lines interactive=False, placeholder="Debug logs will appear here...", ) # ββ Simple Test Tab (for debugging navigation) ββββββββ with gr.Tab("π§ͺ Test Page", id=5): test_page_content = gr.Markdown("# β
ΧΧ Χ’ΧΧΧ!\n\nΧΧ Χ’ΧΧΧ Χ€Χ©ΧΧ ΧΧΧΧΧ§Χ, ΧΧΧ Χ©ΧΧ ΧΧΧΧΧ§Χ.")
# ββ Right column: AI assistant + submit βββββββββββββββββββ with gr.Column(scale=2, elem_classes=["right-col"]):13 unmodified lines gr.Markdown("---") with gr.Row(): submit_btn = gr.Button("π Submit Fix", variant="primary", scale=3) test_results_btn = gr.Button("π§ͺ Test Results Tab", variant="secondary", scale=2) test_results_btn = gr.Button("π§ͺ Test Page", variant="secondary", scale=2) # Live Debug Console (always visible at bottom) gr.Markdown("---")57 unmodified lines ) def test_results_navigation(): """Test function to switch to Results tab with minimal content.""" return ( gr.update(selected=4), # Switch to Results tab "<h2>β
Test Successful!</h2><p>Results tab navigation works!</p>", "<p>This is a test of the Changes section.</p>", "<p>This is a test of the Test Results section.</p>", "<p>This is a test of the Hints section.</p>", ) """Test function to switch to simple Test Page tab.""" return gr.update(selected=5) # Switch to Test Page tab (id=5)
# ββ Setup callback βββββββββββββββββββββββββββββββββββββββββββββββββ
370 unmodified lines ], ) # Test button to navigate to Results tab with minimal content # Test button to navigate to simple Test Page tab test_results_btn.click( test_results_navigation, outputs=[ left_tabs, score_summary_html, results_changes_html, results_test_html, results_hints_html, ], outputs=left_tabs, ) send_btn.click(student_interface.py+9-17