File size: 447 Bytes
07f0a48 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
"""Install requirements for WD14-tagger."""
import os
import sys
from launch import run # pylint: disable=import-error
NAME = "WD14-tagger"
req_file = os.path.join(os.path.dirname(os.path.realpath(__file__)),
"requirements.txt")
print(f"loading {NAME} reqs from {req_file}")
run(f'"{sys.executable}" -m pip install -q -r "{req_file}"',
f"Checking {NAME} requirements.",
f"Couldn't install {NAME} requirements.")
|