Compare commits
2 Commits
0787025151
...
401910901a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
401910901a | ||
|
|
3f5ce6e0e7 |
@@ -125,11 +125,11 @@ public class PythonController {
|
||||
@CrossOrigin
|
||||
@Operation(summary = "Seg Anything 转发接口")
|
||||
@PostMapping("/segAnything")
|
||||
public Response<JSONObject> segAnything(@RequestBody Map<String, Object> payload) {
|
||||
public Response<String> segAnything(@RequestBody Map<String, Object> payload) {
|
||||
// 将前端传来的 Map 转为 fastjson JSONObject 并转发给 python 服务
|
||||
JSONObject requestJson = (JSONObject) JSON.toJSON(payload);
|
||||
JSONObject result = pythonService.segAnything(requestJson);
|
||||
return Response.success(result);
|
||||
String url = pythonService.segAnything(requestJson);
|
||||
return Response.success(url);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user