slogan 恢复

This commit is contained in:
2024-06-17 11:21:54 +08:00
parent 5e1ff16052
commit 8ff8a7480f
3 changed files with 9 additions and 3 deletions

View File

@@ -67,6 +67,8 @@ public class PythonService {
private String fastApiPythonAddress;
@Value("${minio.bucketName.gradient}")
private String gradientBucketName;
@Value("${access.python.generate_sr_port}")
private String srServicePort;
@Resource
private PythonTAllInfoService pythonTAllInfoService;
@@ -3222,7 +3224,7 @@ public class PythonService {
String jsonString = JSON.toJSONString(content, SerializerFeature.WriteNullStringAsEmpty);
RequestBody body = RequestBody.create(mediaType, jsonString);
Request request = new Request.Builder()
.url(fastApiPythonAddress + "/api/super_resolution")
.url(accessPythonIp + srServicePort + "/api/super_resolution")
.method("POST", body)
.addHeader("Content-Type", "application/json")
.build();