From d50edc297a7e6d944a244a84adf68b8bcce5a057 Mon Sep 17 00:00:00 2001
From: nsdou <168500039+nsdou@users.noreply.github.com>
Date: 星期三, 15 五月 2024 17:48:37 +0800
Subject: [PATCH] Fix incorrect assignment of 'end' attribute to 'start' in sentences list comprehension (#1680)
---
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