Skip to content

Commit

Permalink
show docker output when start labelstudio
Browse files Browse the repository at this point in the history
  • Loading branch information
solderzzc committed Sep 27, 2022
1 parent dab1f63 commit 49b7a77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


def get_version() -> str:
return "0.1.36"
return "0.1.37"

install_requires = [
"requests",
Expand Down
5 changes: 3 additions & 2 deletions src/sharpai_hub/commands/yolov7_reid.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ def helper_to_setup_labelstudio(self):
print(output)
print('- 2. Starting Labelstudio service', end = '')

command = f'{self.docker_compose_path} -f {self.yml_path} up -d labelstudio'
output = subprocess.getoutput(command)
args = [self.docker_compose_path, '-f' , self.yml_path,'up','-d','labelstudio']
subprocess.Popen(args= args, cwd=self.runtime_folder)

while True:
try:
resp = requests.get(self.labelstudio_server_url)
Expand Down

0 comments on commit 49b7a77

Please sign in to comment.