(input_model: inputModel)
| 19 | # Call model interface, post request |
| 20 | @app.post("/inter_api") |
| 21 | def inter_api(input_model: inputModel): |
| 22 | img_path = input_model.img_path |
| 23 | infer_api = INFER_API() |
| 24 | score = infer_api.test(img_path) |
| 25 | return score |
| 26 | |
| 27 | |
| 28 | # run |