Spaces:
Build error
Build error
update
Browse files
config.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
import os
|
2 |
import sys
|
3 |
|
|
|
|
|
4 |
JSON_AS_ASCII = False
|
5 |
|
6 |
MAX_CONTENT_LENGTH = 5242880
|
@@ -9,7 +11,7 @@ MAX_CONTENT_LENGTH = 5242880
|
|
9 |
DEBUG = False
|
10 |
|
11 |
# Server port
|
12 |
-
PORT =
|
13 |
|
14 |
# Absolute path of vits-simple-api
|
15 |
ABS_PATH = os.path.dirname(os.path.realpath(__file__))
|
@@ -45,7 +47,7 @@ API_KEY = "api-key"
|
|
45 |
LOGGING_LEVEL = "DEBUG"
|
46 |
|
47 |
# Language identification library. Optional fastlid, langid
|
48 |
-
LANGUAGE_IDENTIFICATION_LIBRARY = "
|
49 |
|
50 |
# To use the english_cleaner, you need to install espeak and provide the path of libespeak-ng.dll as input here.
|
51 |
# If ESPEAK_LIBRARY is set to empty, it will be read from the environment variable.
|
@@ -81,6 +83,8 @@ DIMENSIONAL_EMOTION_NPY = ABS_PATH + "/Model/npy"
|
|
81 |
# w2v2-vits: Need to have both `model.onnx` and `model.yaml` files in the same path.
|
82 |
# DIMENSIONAL_EMOTION_MODEL = ABS_PATH + "/Model/model.yaml"
|
83 |
|
|
|
|
|
84 |
"""
|
85 |
Default parameter
|
86 |
"""
|
|
|
1 |
import os
|
2 |
import sys
|
3 |
|
4 |
+
import torch
|
5 |
+
|
6 |
JSON_AS_ASCII = False
|
7 |
|
8 |
MAX_CONTENT_LENGTH = 5242880
|
|
|
11 |
DEBUG = False
|
12 |
|
13 |
# Server port
|
14 |
+
PORT = 23456
|
15 |
|
16 |
# Absolute path of vits-simple-api
|
17 |
ABS_PATH = os.path.dirname(os.path.realpath(__file__))
|
|
|
47 |
LOGGING_LEVEL = "DEBUG"
|
48 |
|
49 |
# Language identification library. Optional fastlid, langid
|
50 |
+
LANGUAGE_IDENTIFICATION_LIBRARY = "langid"
|
51 |
|
52 |
# To use the english_cleaner, you need to install espeak and provide the path of libespeak-ng.dll as input here.
|
53 |
# If ESPEAK_LIBRARY is set to empty, it will be read from the environment variable.
|
|
|
83 |
# w2v2-vits: Need to have both `model.onnx` and `model.yaml` files in the same path.
|
84 |
# DIMENSIONAL_EMOTION_MODEL = ABS_PATH + "/Model/model.yaml"
|
85 |
|
86 |
+
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
87 |
+
|
88 |
"""
|
89 |
Default parameter
|
90 |
"""
|