修改 imageToSketch

This commit is contained in:
2024-09-24 10:20:08 +08:00
parent 5a86f2e649
commit 3eb8626831
6 changed files with 32 additions and 7 deletions

View File

@@ -3463,8 +3463,8 @@ public class PythonService {
map.put("sketch_bucket", bucket);
map.put("sketch_name", objectName);
log.info("ImageToSketch请求python 参数:####{}", map);
String param = JSON.toJSONString(map, SerializerFeature.WriteNullStringAsEmpty);
log.info("ImageToSketch请求python 参数:####{}", param);
RequestBody body = RequestBody.create(paramMap, param);
Request request = new Request.Builder()
.url(accessPythonIp + ":" + accessPythonPort + "/api/image2sketch")