diff --git a/installer.py b/installer.py index e0fc51edd..2fa1d3ce4 100644 --- a/installer.py +++ b/installer.py @@ -127,11 +127,8 @@ def install(package, friendly: str = None, ignore: bool = False): log.error(f'Error running pip: {arg}') log.debug(f'Pip output: {txt}') return txt - - if not installed(package, friendly): + if args.reinstall or not installed(package, friendly): pip(f"install --upgrade {package}") - elif args.reinstall: - pip(f"install --upgrade --force {package}") # execute git command diff --git a/javascript/extraNetworks.js b/javascript/extraNetworks.js index 1c25f4ffe..a8c54bf7b 100644 --- a/javascript/extraNetworks.js +++ b/javascript/extraNetworks.js @@ -12,7 +12,6 @@ function setupExtraNetworksForTab(tabname) { tabs.appendChild(descriptInput); search.addEventListener('input', (evt) => { searchTerm = search.value.toLowerCase(); - console.log('HERE', searchTerm) gradioApp().querySelectorAll(`#${tabname}_extra_tabs div.card`).forEach((elem) => { text = `${elem.querySelector('.name').textContent.toLowerCase()} ${elem.querySelector('.search_term').textContent.toLowerCase()}`; elem.style.display = text.indexOf(searchTerm) == -1 ? 'none' : ''; @@ -63,7 +62,6 @@ function tryToRemoveExtraNetworkFromPrompt(textarea, text) { } function refreshExtraNetworks(tabname) { - console.log('HERE2', tabname); gradioApp().querySelector(`#${tabname}_extra_networks textarea`)?.dispatchEvent(new Event('input')); } diff --git a/requirements.txt b/requirements.txt index 762f91f40..6290ac037 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,6 @@ aiohttp anyio appdirs astunparse -basicsr bitsandbytes blendmodes clean-fid @@ -45,6 +44,7 @@ torchsde voluptuous yapf scikit-image +basicsr requests==2.30.0 tqdm==4.65.0 accelerate==0.18.0