We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aa090fa + 7502566 commit 689bdd9Copy full SHA for 689bdd9
app.py
@@ -31,8 +31,6 @@ def get_executable_path():
31
LOGS_DIR_PATH.mkdir(parents=True, exist_ok=True)
32
LOGS_DIR=LOGS_DIR_PATH.as_posix()
33
34
-WEB_ADDRESS = os.getenv('WEB_ADDRESS', '127.0.0.1:9966')
35
-
36
import soundfile as sf
37
import ChatTTS
38
import datetime
@@ -46,7 +44,8 @@ def get_executable_path():
46
44
from modelscope import snapshot_download
47
45
import numpy as np
48
49
+# 读取 .env 变量
+WEB_ADDRESS = os.getenv('WEB_ADDRESS', '127.0.0.1:9966')
50
51
52
# 默认从 modelscope 下载模型,如果想从huggingface下载模型,请将以下3行注释掉
0 commit comments