CosyVoice commited on
Commit
f82916a
1 Parent(s): 50c7b06

fix requirements for mac

Browse files
Files changed (3) hide show
  1. requirements.txt +2 -1
  2. runtime/python/server.py +0 -1
  3. webui.py +0 -1
requirements.txt CHANGED
@@ -15,7 +15,8 @@ matplotlib==3.7.5
15
  modelscope==1.15.0
16
  networkx==3.1
17
  omegaconf==2.3.0
18
- onnxruntime-gpu==1.16.0
 
19
  openai-whisper==20231117
20
  protobuf==4.25
21
  pydantic==2.7.0
 
15
  modelscope==1.15.0
16
  networkx==3.1
17
  omegaconf==2.3.0
18
+ onnxruntime-gpu==1.16.0; sys_platform == 'linux'
19
+ onnxruntime==1.16.0; sys_platform == 'darwin' or sys_platform == 'windows'
20
  openai-whisper==20231117
21
  protobuf==4.25
22
  pydantic==2.7.0
runtime/python/server.py CHANGED
@@ -15,7 +15,6 @@ import os
15
  import sys
16
  ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
17
  sys.path.append('{}/../..'.format(ROOT_DIR))
18
- sys.path.append('{}/../../third_party/AcademiCodec'.format(ROOT_DIR))
19
  sys.path.append('{}/../../third_party/Matcha-TTS'.format(ROOT_DIR))
20
  from concurrent import futures
21
  import argparse
 
15
  import sys
16
  ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
17
  sys.path.append('{}/../..'.format(ROOT_DIR))
 
18
  sys.path.append('{}/../../third_party/Matcha-TTS'.format(ROOT_DIR))
19
  from concurrent import futures
20
  import argparse
webui.py CHANGED
@@ -14,7 +14,6 @@
14
  import os
15
  import sys
16
  ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
17
- sys.path.append('{}/third_party/AcademiCodec'.format(ROOT_DIR))
18
  sys.path.append('{}/third_party/Matcha-TTS'.format(ROOT_DIR))
19
 
20
  import argparse
 
14
  import os
15
  import sys
16
  ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
 
17
  sys.path.append('{}/third_party/Matcha-TTS'.format(ROOT_DIR))
18
 
19
  import argparse