open side bar after generation complete
Browse files8198 unmodified lines8199820082018202820382048205820645 unmodified lines8252825382548255825682578198 unmodified linesreturn [gr.update(open=False), gr.update(visible=False)]def end_generation_ui():# Keep sidebar as is; hide the statusreturn [gr.update(), gr.update(visible=False)]btn.click(begin_generation_ui,45 unmodified linesend_generation_ui,inputs=None,outputs=[sidebar, generating_status]).then(show_deploy_components,None,8198 unmodified lines8199820082018202820382048205820645 unmodified lines825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748198 unmodified linesreturn [gr.update(open=False), gr.update(visible=False)]def end_generation_ui():# Open sidebar after generation; hide the statusreturn [gr.update(open=True), gr.update(visible=False)]btn.click(begin_generation_ui,45 unmodified linesend_generation_ui,inputs=None,outputs=[sidebar, generating_status]).then(# After generation, toggle editors for transformers.js and populatetoggle_editors,inputs=[language_dropdown, code_output],outputs=[code_output, tjs_group, tjs_html_code, tjs_js_code, tjs_css_code]).then(# After generation, toggle static multi-file editors for HTMLtoggle_static_editors,inputs=[language_dropdown, code_output],outputs=[code_output,static_group_2, static_group_3, static_group_4, static_group_5plus,static_tab_2_1, static_code_2_1, static_tab_2_2, static_code_2_2,static_tab_3_1, static_code_3_1, static_tab_3_2, static_code_3_2, static_tab_3_3, static_code_3_3,static_tab_4_1, static_code_4_1, static_tab_4_2, static_code_4_2, static_tab_4_3, static_code_4_3, static_tab_4_4, static_code_4_4,static_tab_5_1, static_code_5_1, static_tab_5_2, static_code_5_2, static_tab_5_3, static_code_5_3, static_tab_5_4, static_code_5_4, static_tab_5_5, static_code_5_5,]).then(show_deploy_components,None,
app.py+19-2