Skip to content

Commit 689bdd9

Browse files
authored
Merge pull request #29 from ghyghoo8/patch-1
Update app.py
2 parents aa090fa + 7502566 commit 689bdd9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ def get_executable_path():
3131
LOGS_DIR_PATH.mkdir(parents=True, exist_ok=True)
3232
LOGS_DIR=LOGS_DIR_PATH.as_posix()
3333

34-
WEB_ADDRESS = os.getenv('WEB_ADDRESS', '127.0.0.1:9966')
35-
3634
import soundfile as sf
3735
import ChatTTS
3836
import datetime
@@ -46,7 +44,8 @@ def get_executable_path():
4644
from modelscope import snapshot_download
4745
import numpy as np
4846

49-
47+
# 读取 .env 变量
48+
WEB_ADDRESS = os.getenv('WEB_ADDRESS', '127.0.0.1:9966')
5049

5150

5251
# 默认从 modelscope 下载模型,如果想从huggingface下载模型,请将以下3行注释掉

0 commit comments

Comments
 (0)