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 1
1
package oracleai ;
2
2
3
- import org .springframework .beans .factory .annotation .Autowired ;
4
3
import org .springframework .http .*;
5
4
import org .springframework .stereotype .Service ;
6
5
import org .springframework .web .client .RestTemplate ;
11
10
@ Service
12
11
public class DigitalDoubleService {
13
12
14
- // private final RestTemplate restTemplate;
15
- //
16
- // @Autowired
17
- // public DigitalDoubleService(RestTemplate restTemplate) {
18
- // this.restTemplate = restTemplate;
19
- // }
20
-
21
13
public void updateDigitalDoubleData (DigitalDoubleDownloadInfo info ) {
22
14
String url = AIApplication .ORDS_OMLOPSENDPOINT_URL + "update_digital_double_data/" ;
23
15
Original file line number Diff line number Diff line change @@ -93,10 +93,9 @@ public ResponseEntity<byte[]> getImage(@PathVariable String filename) throws IOE
93
93
@ PostMapping ("/downloaddigitaldouble" )
94
94
public String downloaddigitaldouble (@ RequestParam ("email" ) String email , Model model ) throws Exception {
95
95
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" );
100
99
return "digitaldoubleresults" ;
101
100
}
102
101
Original file line number Diff line number Diff line change 1
1
package oracleai .services ;
2
2
3
- import com .fasterxml .jackson .core .JsonProcessingException ;
4
3
import com .fasterxml .jackson .databind .JsonNode ;
5
4
import com .fasterxml .jackson .databind .ObjectMapper ;
6
5
import oracleai .*;
7
6
import org .jetbrains .annotations .Nullable ;
8
7
import org .springframework .http .*;
9
8
import org .springframework .stereotype .Service ;
10
- import org .springframework .ui .Model ;
11
9
import org .springframework .web .client .RestTemplate ;
12
10
import org .springframework .web .multipart .MultipartFile ;
13
11
import org .springframework .web .util .UriComponentsBuilder ;
You can’t perform that action at this time.
0 commit comments