From f8c1dca3e7c59007707fa33109b04d177c6cf11f Mon Sep 17 00:00:00 2001 From: Penny <2500338766@qq.com> Date: Sun, 23 Apr 2023 01:53:58 +0800 Subject: [PATCH] =?UTF-8?q?feature-img-1.0:=E5=BE=85=E5=8A=A0=E5=85=A5?= =?UTF-8?q?=E7=BF=BB=E8=AF=91api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/bnyer/img/service/impl/StableDiffusionServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bnyer-services/bnyer-img/src/main/java/com/bnyer/img/service/impl/StableDiffusionServiceImpl.java b/bnyer-services/bnyer-img/src/main/java/com/bnyer/img/service/impl/StableDiffusionServiceImpl.java index 9be2f56..a69129d 100644 --- a/bnyer-services/bnyer-img/src/main/java/com/bnyer/img/service/impl/StableDiffusionServiceImpl.java +++ b/bnyer-services/bnyer-img/src/main/java/com/bnyer/img/service/impl/StableDiffusionServiceImpl.java @@ -68,7 +68,7 @@ public class StableDiffusionServiceImpl implements StableDiffusionService { map.put("steps",25); map.put("negative_prompt","nsfw"); log.info("请求stable_diffusion请求体为:【{}】", JSON.toJSONString(map)); - JSONObject jsonObject = restTemplate.postForObject("http://124.220.2.237:7860/sdapi/v1/txt2img", map, JSONObject.class); + JSONObject jsonObject = restTemplate.postForObject("http://localhost:7860/sdapi/v1/txt2img", map, JSONObject.class); log.info("请求stable_diffusion响应体的为:【{}】", JSON.toJSONString(jsonObject)); TextToImgVo img = new TextToImgVo(); if(jsonObject != null && jsonObject.getJSONArray("images").size() > 0){