R1ckShi
2024-06-11 a0c58c8fc6fd68055897be95d11be35506581a91
funasr/utils/install_model_requirements.py
@@ -1,12 +1,13 @@
import subprocess
def install_requirements(requirements_path):
    try:
        result = subprocess.run(
            ['pip', 'install', '-r', requirements_path],
            ["pip", "install", "-r", requirements_path],
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
            text=True
            text=True,
        )
        # check status
@@ -19,10 +20,10 @@
            return False
    except Exception as e:
        result = subprocess.run(
            ['pip', 'install', '-r', requirements_path],
            ["pip", "install", "-r", requirements_path],
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,
            text=True
            text=True,
        )
        # check status