From bef2d3a3911e63d7bf57132bf922a035c9c4bdce Mon Sep 17 00:00:00 2001
From: 雾聪 <wucong.lyb@alibaba-inc.com>
Date: 星期四, 10 十月 2024 15:44:58 +0800
Subject: [PATCH] Merge branch 'main' of https://github.com/alibaba-damo-academy/FunASR into main
---
funasr/utils/install_model_requirements.py | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/funasr/utils/install_model_requirements.py b/funasr/utils/install_model_requirements.py
index b67345d..d7295db 100644
--- a/funasr/utils/install_model_requirements.py
+++ b/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
--
Gitblit v1.9.1