Skip to content

Commit

Permalink
fix to check status
Browse files Browse the repository at this point in the history
  • Loading branch information
tamuhey committed Aug 20, 2020
1 parent b3a187d commit 68c3d64
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/download_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ def download_model(name: str, version: Optional[str], directory: Optional[Path]
model = models[0]
assert model, (name, version)

subprocess.call(
[sys.executable, "-m", "pip", "install", model["download_url"], "--no-deps"]
subprocess.run(
[sys.executable, "-m", "pip", "install", model["download_url"], "--no-deps"],
check=True,
)


Expand Down

0 comments on commit 68c3d64

Please sign in to comment.