Browse Source

Update script.js

updated how tabs are presented in DOM with Gradio 3.23.
GeorgLegato 2 years ago
parent
commit
d9fdb52149
1 changed files with 1 additions and 1 deletions
  1. 1 1
      script.js

+ 1 - 1
script.js

@@ -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() {