File tree Expand file tree Collapse file tree 3 files changed +3
-14
lines changed
java-ai/src/main/java/oracleai Expand file tree Collapse file tree 3 files changed +3
-14
lines changed Original file line number Diff line number Diff line change 11package oracleai ;
22
3- import org .springframework .beans .factory .annotation .Autowired ;
43import org .springframework .http .*;
54import org .springframework .stereotype .Service ;
65import org .springframework .web .client .RestTemplate ;
1110@ Service
1211public 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11package oracleai .services ;
22
3- import com .fasterxml .jackson .core .JsonProcessingException ;
43import com .fasterxml .jackson .databind .JsonNode ;
54import com .fasterxml .jackson .databind .ObjectMapper ;
65import oracleai .*;
76import org .jetbrains .annotations .Nullable ;
87import org .springframework .http .*;
98import org .springframework .stereotype .Service ;
10- import org .springframework .ui .Model ;
119import org .springframework .web .client .RestTemplate ;
1210import org .springframework .web .multipart .MultipartFile ;
1311import org .springframework .web .util .UriComponentsBuilder ;
You can’t perform that action at this time.
0 commit comments