Fix for newer Gradio versions

pull/8/head
catboxanon 2023-08-10 04:01:12 -04:00 committed by GitHub
parent 65b8755bb3
commit fe65dae056
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

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