gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
32.35k stars 2.42k forks source link

how can I know the selected tabitem for Tabs #3833

Closed xiaohu2015 closed 1 year ago

xiaohu2015 commented 1 year ago

for example, there are two tabs, how can I know which is selected for the user

with gr.Tabs() as tab:
        with gr.TabItem('tab1'):
                pass
        with gr.TabItem("tab2"):
                pass
abidlabs commented 1 year ago

Hi @xiaohu2015 please see #3793 for the existing issue as well as a workaround in the meantime.