remove force reinstall

This commit is contained in:
Vladimir Mandic
2023-05-11 14:20:27 -04:00
parent e8100ebadb
commit 8c98115914
3 changed files with 2 additions and 7 deletions
+1 -4
View File
@@ -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
-2
View File
@@ -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'));
}
+1 -1
View File
@@ -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