-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2e4b9c
commit 84cf0f0
Showing
3 changed files
with
22 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import subprocess | ||
from script_builder.util import get_venv_executable | ||
|
||
# TODO: these imports seem to mess up the venv | ||
from concierge_backend_lib.status import get_status | ||
from concierge_installer.functions import docker_compose_helper | ||
|
||
print("Checking Docker container status...\n") | ||
status = get_status() | ||
|
||
if not status["ollama"] or not status["milvus"]: | ||
print("Docker container dependencies don't appear to be running properly.") | ||
compute_method = input("Start docker containers with CPU or GPU? [CPU] or GPU:") or "CPU" | ||
if compute_method == 'GPU': | ||
docker_compose_helper('GPU') | ||
else: | ||
docker_compose_helper('CPU') | ||
|
||
|
||
subprocess.run([get_venv_executable(), '-m', 'streamlit', 'run', 'Concierge.py']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,4 @@ | ||
import subprocess | ||
from script_builder.util import get_venv_executable | ||
|
||
# TODO: these imports seem to mess up the venv | ||
# from concierge_backend_lib.status import get_status | ||
# from concierge_installer.functions import docker_compose_helper | ||
|
||
# print("Checking Docker container status...\n") | ||
# status = get_status() | ||
|
||
# if not status["ollama"] or not status["milvus"]: | ||
# print("Docker container dependencies don't appear to be running properly.") | ||
# compute_method = input("Start docker containers with CPU or GPU? [CPU] or GPU:") or "CPU" | ||
# if compute_method == 'GPU': | ||
# docker_compose_helper('GPU') | ||
# else: | ||
# docker_compose_helper('CPU') | ||
|
||
|
||
subprocess.run([get_venv_executable(), '-m', 'streamlit', 'run', 'Concierge.py']) | ||
subprocess.run([get_venv_executable(), 'concierge_installer/launcher.py']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters