Commit d9fdb521 authored by GeorgLegato's avatar GeorgLegato Committed by GitHub

Update script.js

updated how tabs are presented in DOM with Gradio 3.23.
parent 22bcc7be
...@@ -7,7 +7,7 @@ function gradioApp() { ...@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment