Skip to content

Commit

Permalink
This is going to be a way bigger change than planed
Browse files Browse the repository at this point in the history
  • Loading branch information
lunamidori5 committed Jun 23, 2024
1 parent 6fec051 commit 359d915
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions other_files/model_installer/setup_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

import edit_models as models_edit_add_on

def dev_setup_docker(DockerClient, compose_path, ver_os_info, containers, use_gui, sg, ver_info, layout, client_openai, unused_int, subsystem_file_name):
from python_on_whales import DockerClient

def dev_setup_docker(docker, compose_path, ver_os_info, containers, use_gui, sg, ver_info, layout, client_openai, unused_int, subsystem_file_name):
CPUCORES = int(psutil.cpu_count())
os_checker = platform.release()
known_niv_gpus = s.known_gpus()
Expand Down Expand Up @@ -311,12 +313,12 @@ def dev_setup_docker(DockerClient, compose_path, ver_os_info, containers, use_gu
f.write(ver_info)

if os.path.exists(os.path.join("files", subsystem_ver_auto_update)):
models_edit_add_on.subsystem_backend_manager.backend_updater(None, "midori-docker-compose.yaml", client, ver_os_info)
models_edit_add_on.subsystem_backend_manager.backend_updater(None, "midori-docker-compose.yaml", docker, ver_os_info)


if update_all:
if os.path.exists(os.path.join("files", subsystem_ver_auto_update)):
models_edit_add_on.subsystem_backend_manager.backend_updater(None, "midori-docker-compose.yaml", client, ver_os_info)
models_edit_add_on.subsystem_backend_manager.backend_updater(None, "midori-docker-compose.yaml", docker, ver_os_info)



Expand Down

0 comments on commit 359d915

Please sign in to comment.