From 8aed389d79621b3334d7e725d8c74e0eebf7cec5 Mon Sep 17 00:00:00 2001 From: xsl Date: Fri, 17 Jul 2026 00:44:20 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=87=8D=E7=BB=98=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E6=8B=86=E5=88=B0=E8=BF=9C=E7=A8=8B=E6=9C=BA=E5=99=A8=20117.50?= =?UTF-8?q?.183.232:8899?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 接口2 female 后端(generate_grow_results_swap)、test_interface12.html、 test_interface12_final.html 三处重绘调用地址由本机 127.0.0.1:8899 改为远程 117.50.183.232:8899,本机不再跑重绘服务(释放本机显存)。 地址仍可用 HAIR_LOCAL_REDRAW_URL 环境变量覆盖。 --- hairline/service.py | 4 ++-- static/test_interface12.html | 2 +- static/test_interface12_final.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hairline/service.py b/hairline/service.py index 99667b4..41c026d 100644 --- a/hairline/service.py +++ b/hairline/service.py @@ -41,8 +41,8 @@ _TEXTURE_DIR = os.path.join(_REPO, "hairline_texture") _BLACK_TEXTURE_DIR = os.path.join(_REPO, "hairline_texture_black") # 外部重绘服务(local_test,0716add-hair.json 工作流)。接口2 female 用它替代原 Flux-2 重绘。 -# 可用 HAIR_LOCAL_REDRAW_URL 覆盖(如线上改地址),默认 http://127.0.0.1:8899。 -_LOCAL_REDRAW_URL = os.getenv("HAIR_LOCAL_REDRAW_URL", "http://127.0.0.1:8899").rstrip("/") +# 重绘服务已独立到远程机器;可用 HAIR_LOCAL_REDRAW_URL 覆盖。 +_LOCAL_REDRAW_URL = os.getenv("HAIR_LOCAL_REDRAW_URL", "http://117.50.183.232: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 5c39a8e..b5c84ee 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 0c52755..0b4c049 100644 --- a/static/test_interface12_final.html +++ b/static/test_interface12_final.html @@ -55,7 +55,7 @@
- +