|
|
|
@ -12,8 +12,8 @@ import java.io.FileOutputStream;
|
|
|
|
|
import java.io.OutputStream;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
|
|
public class JmText2Image extends JmCommon {
|
|
|
|
|
private static final Logger log = LoggerFactory.getLogger(JmText2Image.class);
|
|
|
|
|
public class JmText2Img extends JmCommon {
|
|
|
|
|
private static final Logger log = LoggerFactory.getLogger(JmText2Img.class);
|
|
|
|
|
|
|
|
|
|
private static final String action = "CVProcess";
|
|
|
|
|
private static final String req_key = "jimeng_high_aes_general_v21_L";
|
|
|
|
@ -86,7 +86,7 @@ public class JmText2Image extends JmCommon {
|
|
|
|
|
|
|
|
|
|
while (retryCount < maxRetries) {
|
|
|
|
|
try {
|
|
|
|
|
JmText2Image.generateImage(prompt, saveImagePath);
|
|
|
|
|
JmText2Img.generateImage(prompt, saveImagePath);
|
|
|
|
|
// 成功生成图片,跳出循环
|
|
|
|
|
break;
|
|
|
|
|
} catch (Exception e) {
|