parent
16e7ac09df
commit
c74becca23
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -19,4 +19,5 @@ __pycache__
|
||||||
/webui-user.sh
|
/webui-user.sh
|
||||||
/interrogate
|
/interrogate
|
||||||
/user.css
|
/user.css
|
||||||
/.idea
|
/.idea
|
||||||
|
/SwinIR
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
// various functions for interation with ui.py not large enough to warrant putting them in separate files
|
// various functions for interation with ui.py not large enough to warrant putting them in separate files
|
||||||
|
|
||||||
function selected_gallery_index(){
|
function selected_gallery_index(){
|
||||||
var gr = gradioApp()
|
var buttons = gradioApp().querySelectorAll('[style="display: block;"].tabitem .gallery-item')
|
||||||
var buttons = gradioApp().querySelectorAll(".gallery-item")
|
var button = gradioApp().querySelector('[style="display: block;"].tabitem .gallery-item.\\!ring-2')
|
||||||
var button = gr.querySelector(".gallery-item.\\!ring-2")
|
|
||||||
|
|
||||||
var result = -1
|
var result = -1
|
||||||
buttons.forEach(function(v, i){ if(v==button) { result = i } })
|
buttons.forEach(function(v, i){ if(v==button) { result = i } })
|
||||||
|
|
Loading…
Reference in New Issue
Block a user