Skip to content

Commit f9fa31e

Browse files
committed
digital double logic
1 parent 9846f03 commit f9fa31e

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package oracleai;
22

3-
import org.springframework.beans.factory.annotation.Autowired;
43
import org.springframework.http.*;
54
import org.springframework.stereotype.Service;
65
import org.springframework.web.client.RestTemplate;
@@ -11,13 +10,6 @@
1110
@Service
1211
public class DigitalDoubleService {
1312

14-
// private final RestTemplate restTemplate;
15-
//
16-
// @Autowired
17-
// public DigitalDoubleService(RestTemplate restTemplate) {
18-
// this.restTemplate = restTemplate;
19-
// }
20-
2113
public void updateDigitalDoubleData(DigitalDoubleDownloadInfo info) {
2214
String url = AIApplication.ORDS_OMLOPSENDPOINT_URL + "update_digital_double_data/";
2315

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,9 @@ public ResponseEntity<byte[]> getImage(@PathVariable String filename) throws IOE
9393
@PostMapping("/downloaddigitaldouble")
9494
public String downloaddigitaldouble(@RequestParam("email") String email, Model model) throws Exception {
9595
model.addAttribute("fbxlink", ORDSCalls.getDigitalDoubleData(email));
96-
model.addAttribute("fbxtext", "fbx link");
97-
model.addAttribute("mp4link", ImageProcessor.objectStoreLocation + email);
98-
model.addAttribute("mp4text", "mp4 link");
99-
// return "resultswithlinkpage";
96+
model.addAttribute("fbxtext", "FBX 3D Model");
97+
model.addAttribute("mp4link", ImageProcessor.objectStoreLocation + email + ".mp4");
98+
model.addAttribute("mp4text", "MP4 Animation");
10099
return "digitaldoubleresults";
101100
}
102101

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
package oracleai.services;
22

3-
import com.fasterxml.jackson.core.JsonProcessingException;
43
import com.fasterxml.jackson.databind.JsonNode;
54
import com.fasterxml.jackson.databind.ObjectMapper;
65
import oracleai.*;
76
import org.jetbrains.annotations.Nullable;
87
import org.springframework.http.*;
98
import org.springframework.stereotype.Service;
10-
import org.springframework.ui.Model;
119
import org.springframework.web.client.RestTemplate;
1210
import org.springframework.web.multipart.MultipartFile;
1311
import org.springframework.web.util.UriComponentsBuilder;

0 commit comments

Comments
 (0)