From ecdef627d4d698c2a5bd32a704a665ac2a0a9788 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 6 Apr 2026 15:30:35 +0800 Subject: [PATCH] save code --- change2/nohup.out | 6 ------ change2/service2.py | 4 ++-- change3/nohup.out | 10 ---------- change3/service3.py | 4 ++-- change_app.py | 2 +- nohup.out | 10 ---------- 6 files changed, 5 insertions(+), 31 deletions(-) delete mode 100644 change2/nohup.out delete mode 100644 change3/nohup.out delete mode 100644 nohup.out diff --git a/change2/nohup.out b/change2/nohup.out deleted file mode 100644 index efa65e3..0000000 --- a/change2/nohup.out +++ /dev/null @@ -1,6 +0,0 @@ -/usr/local/miniconda3/envs/py312/lib/python3.12/site-packages/requests/__init__.py:113: RequestsDependencyWarning: urllib3 (2.6.3) or chardet (7.0.1)/charset_normalizer (3.4.5) doesn't match a supported version! - warnings.warn( -INFO: Started server process [9669] -INFO: Waiting for application startup. -INFO: Application startup complete. -INFO: Uvicorn running on http://0.0.0.0:12222 (Press CTRL+C to quit) diff --git a/change2/service2.py b/change2/service2.py index ea5b0ea..2691860 100644 --- a/change2/service2.py +++ b/change2/service2.py @@ -26,8 +26,8 @@ from pydantic import BaseModel import oss2 -COMFYUI_URL = "http://127.0.0.1:8188" -# COMFYUI_URL = "http://117.50.80.187:47697" +# COMFYUI_URL = "http://127.0.0.1:8188" +COMFYUI_URL = "http://112.126.94.241:28188" WORKFLOW_PATH = Path(__file__).parent / "change2_1_ex.json" # WORKFLOW_PATH = Path(__file__).parent / "change_fast2.json" diff --git a/change3/nohup.out b/change3/nohup.out deleted file mode 100644 index b5ceacc..0000000 --- a/change3/nohup.out +++ /dev/null @@ -1,10 +0,0 @@ -/usr/local/miniconda3/envs/py312/lib/python3.12/site-packages/requests/__init__.py:113: RequestsDependencyWarning: urllib3 (2.6.3) or chardet (7.0.1)/charset_normalizer (3.4.5) doesn't match a supported version! - warnings.warn( -INFO: Started server process [9612] -INFO: Waiting for application startup. -INFO: Application startup complete. -INFO: Uvicorn running on http://0.0.0.0:12223 (Press CTRL+C to quit) -静态文件目录: /root/change_cloth_server/change3/static -接收到换装请求,正在处理... -文件上传成功,URL: http://xiangsilian.oss-cn-beijing.aliyuncs.com/tryon%2F627bcee434384a7b847faf2dbbce90ae.png?OSSAccessKeyId=LTAI5tGp1sLzedqxihcNC1eb&Expires=2088730306&Signature=aATPXbjJCE3ArJnYfRyvSVSI8EE%3D -INFO: 127.0.0.1:39178 - "POST /try-on HTTP/1.1" 200 OK diff --git a/change3/service3.py b/change3/service3.py index 5be3193..f4fdd75 100644 --- a/change3/service3.py +++ b/change3/service3.py @@ -25,8 +25,8 @@ from fastapi.responses import FileResponse from fastapi.staticfiles import StaticFiles from pydantic import BaseModel -COMFYUI_URL = "http://127.0.0.1:8188" -# COMFYUI_URL = "http://117.50.80.187:47697" +# COMFYUI_URL = "http://127.0.0.1:8188" +COMFYUI_URL = "http://112.126.94.241:28188" WORKFLOW_PATH = Path(__file__).parent / "change2_2_0308.json" # WORKFLOW_PATH = Path(__file__).parent / "change_fast3.json" diff --git a/change_app.py b/change_app.py index 7714d90..4b29bfa 100644 --- a/change_app.py +++ b/change_app.py @@ -69,7 +69,7 @@ def change_cloth_base64(): if __name__ == '__main__': - app.run(host="0.0.0.0", port=28889, debug=True) + app.run(host="0.0.0.0", port=28888, debug=True) # if __name__ == '__main__': # # 证书路径(替换为你的域名) diff --git a/nohup.out b/nohup.out deleted file mode 100644 index 68b145f..0000000 --- a/nohup.out +++ /dev/null @@ -1,10 +0,0 @@ -/usr/local/miniconda3/envs/py312/lib/python3.12/site-packages/requests/__init__.py:113: RequestsDependencyWarning: urllib3 (2.6.3) or chardet (7.0.1)/charset_normalizer (3.4.5) doesn't match a supported version! - warnings.warn( - * Serving Flask app 'change_app' - * Debug mode: off -WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. - * Running on all addresses (0.0.0.0) - * Running on http://127.0.0.1:28888 - * Running on http://10.60.190.115:28888 -Press CTRL+C to quit -1.202.76.38 - - [13/Mar/2026 02:51:46] "POST /change_cloth_base64 HTTP/1.1" 200 -