游雁
2024-06-12 e4a69d4768674e57faf4a08eecca2fce88d3e190
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