Update script.js

updated how tabs are presented in DOM with Gradio 3.23.
This commit is contained in:
GeorgLegato 2023-04-03 04:53:29 +02:00 committed by GitHub
parent 22bcc7be42
commit d9fdb52149
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ function gradioApp() {
} }
function get_uiCurrentTab() { function get_uiCurrentTab() {
return gradioApp().querySelector('#tabs button:not(.border-transparent)') return gradioApp().querySelector('#tabs button.selected')
} }
function get_uiCurrentTabContent() { function get_uiCurrentTabContent() {