Ver código fonte

fix requirements for mac

lyuxiang.lx 1 ano atrás
pai
commit
f82916a768
3 arquivos alterados com 2 adições e 3 exclusões
  1. 2 1
      requirements.txt
  2. 0 1
      runtime/python/server.py
  3. 0 1
      webui.py

+ 2 - 1
requirements.txt

@@ -15,7 +15,8 @@ matplotlib==3.7.5
 modelscope==1.15.0
 networkx==3.1
 omegaconf==2.3.0
-onnxruntime-gpu==1.16.0
+onnxruntime-gpu==1.16.0; sys_platform == 'linux'
+onnxruntime==1.16.0; sys_platform == 'darwin' or sys_platform == 'windows'
 openai-whisper==20231117
 protobuf==4.25
 pydantic==2.7.0

+ 0 - 1
runtime/python/server.py

@@ -15,7 +15,6 @@ import os
 import sys
 ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
 sys.path.append('{}/../..'.format(ROOT_DIR))
-sys.path.append('{}/../../third_party/AcademiCodec'.format(ROOT_DIR))
 sys.path.append('{}/../../third_party/Matcha-TTS'.format(ROOT_DIR))
 from concurrent import futures
 import argparse

+ 0 - 1
webui.py

@@ -14,7 +14,6 @@
 import os
 import sys
 ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
-sys.path.append('{}/third_party/AcademiCodec'.format(ROOT_DIR))
 sys.path.append('{}/third_party/Matcha-TTS'.format(ROOT_DIR))
 
 import argparse