Skip to content

Commit e61fc4b

Browse files
committed
digital double logic
1 parent c8ead5d commit e61fc4b

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

java-ai/src/main/java/oracleai/DigitalDoubleService.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ public class DigitalDoubleService {
2424
public void updateDigitalDoubleData(DigitalDoubleDownloadInfo info) {
2525
String url = AIApplication.ORDS_OMLOPSENDPOINT_URL + "update_digital_double_data/";
2626

27-
// Prepare headers
2827
HttpHeaders headers = new HttpHeaders();
2928
headers.setContentType(MediaType.APPLICATION_JSON);
3029

31-
// Prepare the payload
3230
Map<String, Object> requestBody = new HashMap<>();
3331
requestBody.put("p_participant_email", info.getEmail());
3432
requestBody.put("p_modelglburl_out", info.getModelGlbUrl());
@@ -37,7 +35,7 @@ public void updateDigitalDoubleData(DigitalDoubleDownloadInfo info) {
3735
requestBody.put("p_thumbnailurl_out", info.getThumbnailUrl());
3836
requestBody.put("p_videourl_out", info.getAnimatedVideoLocation());
3937
requestBody.put("p_video_out", null); // Optional field
40-
requestBody.put("p_similar_image_out", info.getSimilarImageUrl());
38+
requestBody.put("p_similar_image_out", null);
4139

4240
// Create the HttpEntity that includes headers and the body
4341
HttpEntity<Map<String, Object>> entity = new HttpEntity<>(requestBody, headers);

java-ai/src/main/java/oracleai/services/ORDSCalls.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,7 @@ public static DigitalDoubleDownloadInfo pollApiUntilSuccess(
173173
String modelFbxUrl = rootNode.path("model_urls").path("fbx").asText();
174174
String modelUsdzUrl = rootNode.path("model_urls").path("usdz").asText();
175175
String thumbnailUrl = rootNode.path("thumbnail_url").asText();
176-
// return String.format("Model URL: %s\nGLB URL: %s\nFBX URL: %s\nUSDZ URL: %s\nThumbnail URL: %s",
177-
// modelUrl, modelGlbUrl, modelFbxUrl, modelUsdzUrl, thumbnailUrl);
176+
System.out.println("ORDSCalls.pollApiUntilSuccess modelFbxUrl:" + modelFbxUrl);
178177
return new DigitalDoubleDownloadInfo(
179178
modelUrl, modelGlbUrl, modelFbxUrl, modelUsdzUrl, thumbnailUrl);
180179
}

0 commit comments

Comments
 (0)