From d9e96aca8713f912ef465178a66bee9d65f2e7e7 Mon Sep 17 00:00:00 2001 From: xsl Date: Fri, 17 Jul 2026 00:57:58 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=87=8D=E7=BB=98=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E6=94=B9=E8=B5=B0=E5=86=85=E7=BD=91=2010.60.74.221:8899?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gpu_worker 与重绘服务在同一内网,走内网地址(3ms 延迟,比公网更稳定)。 三处调用地址(service.py / test_interface12 / test_interface12_final) 由公网 117.50.183.232 改为内网 10.60.74.221。仍可用 HAIR_LOCAL_REDRAW_URL 覆盖。 --- hairline/service.py | 3 ++- static/test_interface12.html | 2 +- static/test_interface12_final.html | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hairline/service.py b/hairline/service.py index 41c026d..65de667 100644 --- a/hairline/service.py +++ b/hairline/service.py @@ -42,7 +42,8 @@ _BLACK_TEXTURE_DIR = os.path.join(_REPO, "hairline_texture_black") # 外部重绘服务(local_test,0716add-hair.json 工作流)。接口2 female 用它替代原 Flux-2 重绘。 # 重绘服务已独立到远程机器;可用 HAIR_LOCAL_REDRAW_URL 覆盖。 -_LOCAL_REDRAW_URL = os.getenv("HAIR_LOCAL_REDRAW_URL", "http://117.50.183.232:8899").rstrip("/") +# gpu_worker 同内网走 10.60.74.221,外网(本地开发机)需走公网 117.50.183.232。 +_LOCAL_REDRAW_URL = os.getenv("HAIR_LOCAL_REDRAW_URL", "http://10.60.74.221:8899").rstrip("/") def _call_local_redraw(image_png_bytes, mask_png_bytes, timeout=300.0): diff --git a/static/test_interface12.html b/static/test_interface12.html index b5c84ee..5425443 100644 --- a/static/test_interface12.html +++ b/static/test_interface12.html @@ -68,7 +68,7 @@
- +
diff --git a/static/test_interface12_final.html b/static/test_interface12_final.html index 0b4c049..334c5a9 100644 --- a/static/test_interface12_final.html +++ b/static/test_interface12_final.html @@ -55,7 +55,7 @@
- +