Skip to content

Commit 8a74f09

Browse files
committed
update:日志输出接口地址
1 parent 8645500 commit 8a74f09

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ def get_local_ip() -> str:
3131
print("=" * 60)
3232
local_ip = get_local_ip()
3333
print(
34-
f"3D-Speaker 声纹API服务已启动,访问: http://{local_ip}:{settings.port}/voiceprint/docs"
34+
f"声纹接口地址: http://{local_ip}:{settings.port}/voiceprint/health?key="
35+
+ settings.api_token
3536
)
3637
print("=" * 60)
3738

start_server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ def main():
4040
print("=" * 60)
4141
local_ip = get_local_ip()
4242
print(
43-
f"3D-Speaker 声纹API服务已启动,访问: http://{local_ip}:{settings.port}/voiceprint/docs"
43+
f"声纹接口地址: http://{local_ip}:{settings.port}/voiceprint/health?key="
44+
+ settings.api_token
4445
)
4546
print("=" * 60)
4647

0 commit comments

Comments
 (0)