Fix for newer Gradio versions
parent
65b8755bb3
commit
fe65dae056
|
|
@ -60,7 +60,10 @@ onUiLoaded(async () => {
|
|||
container.style.width = 'auto'
|
||||
|
||||
container.querySelector('.float').remove()
|
||||
container.querySelector('.download').remove()
|
||||
container.querySelector('.download')?.remove()
|
||||
for (const downloadButton of container.querySelectorAll('[download]')) {
|
||||
downloadButton.parentElement.remove()
|
||||
}
|
||||
|
||||
const wheel = container.getElementsByTagName('img')[0]
|
||||
wheel.style.height = '100%'
|
||||
|
|
@ -91,4 +94,4 @@ onUiLoaded(async () => {
|
|||
|
||||
})
|
||||
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue