mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
remove force reinstall
This commit is contained in:
+1
-4
@@ -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
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user