游雁
2024-06-24 1596f6f414f6f41da66506debb1dff19fffeb3ec
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