游雁
2024-10-10 2330e58f5ffa6d78cbdc099ac1a7e0aa1bd6a09f
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