Spaces:
Sleeping
Sleeping
Add test button for Results tab navigation
Browse files1318 unmodified lines131913201321132213231324132555 unmodified lines138113821383138413851386369 unmodified lines1756175717581759176017611318 unmodified linessend_btn = gr.Button("Send", variant="secondary", scale=1)gr.Markdown("---")submit_btn = gr.Button("π Submit Fix", variant="primary")# Live Debug Console (always visible at bottom)gr.Markdown("---")55 unmodified lines"", "", "", "", # clear textboxes"", "" # clear states)# ββ Setup callback βββββββββββββββββββββββββββββββββββββββββββββββββ369 unmodified lineslive_debug_console,],)send_btn.click(on_send,inputs=[chat_input, chatbot, hints_used_state, submission_count_state, workspace_state, hint_log_state, confirmation_pending_state],1318 unmodified lines13191320132113221323132413251326132755 unmodified lines1383138413851386138713881389139013911392139313941395139613971398369 unmodified lines17681769177017711772177317741775177617771778177917801781178217831784178517861318 unmodified linessend_btn = gr.Button("Send", variant="secondary", scale=1)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)# Live Debug Console (always visible at bottom)gr.Markdown("---")55 unmodified lines"", "", "", "", # clear textboxes"", "" # clear states)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>",)# ββ Setup callback βββββββββββββββββββββββββββββββββββββββββββββββββ369 unmodified lineslive_debug_console,],)# Test button to navigate to Results tab with minimal contenttest_results_btn.click(test_results_navigation,outputs=[left_tabs,score_summary_html,results_changes_html,results_test_html,results_hints_html,],)send_btn.click(on_send,inputs=[chat_input, chatbot, hints_used_state, submission_count_state, workspace_state, hint_log_state, confirmation_pending_state],
student_interface.py+26-1